Skip to content

Commit cfce00b

Browse files
committed
fixup! Add GitHub CI workflows
1 parent 148628d commit cfce00b

1 file changed

Lines changed: 42 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,78 @@ jobs:
1111
lint:
1212
runs-on: ubuntu-slim
1313
timeout-minutes: 5
14+
1415
steps:
1516
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1617
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
18+
with:
19+
node-version: lts/*
20+
1721
- run: npm ci
1822
- run: npm run lint
1923

20-
dist-check:
24+
build:
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
node-version: [20.x, 22.x, 24.x]
29+
2130
runs-on: ubuntu-slim
2231
timeout-minutes: 5
32+
2333
steps:
2434
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2535
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
2639
- run: npm ci
2740
- run: npm run build
2841
- run: git diff --color --exit-code
2942

3043
test-node:
31-
runs-on: ubuntu-24.04
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
node-version: [20.x, 22.x, 24.x]
48+
49+
runs-on: ubuntu-slim
3250
timeout-minutes: 10
51+
3352
steps:
3453
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3554
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
55+
with:
56+
node-version: ${{ matrix.node-version }}
57+
3658
- run: npm ci
3759
- run: npm run test:parallel
3860

61+
test-firefox:
62+
runs-on: ubuntu-latest
63+
timeout-minutes: 10
64+
65+
steps:
66+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
67+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
68+
with:
69+
node-version: lts/*
70+
71+
- run: npm ci
72+
- run: xvfb-run -- npm run ci
73+
3974
test-safari:
4075
runs-on: macos-latest
4176
timeout-minutes: 10
4277

4378
steps:
4479
- run: osascript -e 'get version of application "Safari"'
80+
4581
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4682
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
83+
with:
84+
node-version: lts/*
85+
4786
- run: npm ci
4887
- run: npm run ci
4988
env:
@@ -52,6 +91,7 @@ jobs:
5291
test-gjs:
5392
runs-on: ubuntu-24.04
5493
timeout-minutes: 10
94+
5595
steps:
5696
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5797
- run: sudo apt-get update

0 commit comments

Comments
 (0)