Skip to content

Commit c36e573

Browse files
authored
Merge branch 'main' into pcarleton/pr-pkg-new
2 parents cea088d + 6f20663 commit c36e573

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,35 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 24
2222
cache: npm
2323

2424
- run: npm ci
2525
- run: npm run check
2626
- run: npm run build
27+
28+
test:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
node-version: [18, 24]
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-node@v4
38+
with:
39+
node-version: ${{ matrix.node-version }}
40+
cache: npm
41+
42+
- run: npm ci
2743
- run: npm test
2844

2945
publish:
3046
runs-on: ubuntu-latest
3147
if: github.event_name == 'release'
3248
environment: release
33-
needs: build
49+
needs: [build, test]
3450

3551
permissions:
3652
contents: read
@@ -40,7 +56,7 @@ jobs:
4056
- uses: actions/checkout@v4
4157
- uses: actions/setup-node@v4
4258
with:
43-
node-version: 18
59+
node-version: 24
4460
cache: npm
4561
registry-url: 'https://registry.npmjs.org'
4662

0 commit comments

Comments
 (0)