-
Notifications
You must be signed in to change notification settings - Fork 406
96 lines (86 loc) · 2.11 KB
/
ci.yml
File metadata and controls
96 lines (86 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CI
on:
push:
branches:
- master
- "0.6"
- "0.8.x"
- v*
pull_request:
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: "npm"
cache-dependency-path: package.json
- run: npm i
- run: npm run lint
test:
strategy:
matrix:
os: [ubuntu-latest]
node: [20, 22, 24]
include:
- os: macos-latest
node: 22
- os: windows-latest
node: 22
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- uses: browser-actions/[email protected]
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache-dependency-path: package.json
- run: firefox --version
- run: npm i
- uses: nick-invision/[email protected]
with:
timeout_minutes: 10
max_attempts: 3
retry_on: error
command: npm test
- run: sudo apt-get install -y libgtk2.0-0
if: runner.os == 'Linux'
- name: npm run integration
uses: GabrielBB/[email protected]
with:
run: npm run integration
safari-smoke:
name: safari-ci-smoke
runs-on: macos-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: "npm"
cache-dependency-path: package.json
- run: npm i
- run: npm run ci:safari-smoke
browser-tests:
name: browser-tests
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency: "sauce"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: "npm"
cache-dependency-path: package.json
- run: npm i
- run: npm run browser-tests
env:
SAUCE_USERNAME: testem-ci
SAUCE_ACCESS_KEY: 1f00979e-0252-4d69-98ff-f6c85d1a746b