Skip to content

Commit b353271

Browse files
Update CI to run against Node 20, 22 and 24 (#185)
1 parent 99b42bb commit b353271

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,25 @@ concurrency:
1818
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1919

2020
env:
21-
NODE_VERSION: 18
21+
NODE_VERSION: 24
2222
CACHE_KEY: "${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}"
2323

2424
jobs:
2525
build:
2626
name: Build Package
2727
runs-on: ubuntu-latest
2828

29+
strategy:
30+
matrix:
31+
node-version: ['20', '22', '24']
32+
2933
steps:
3034
- name: Checkout code
3135
uses: actions/checkout@v4
3236

3337
- uses: ./.github/actions/build
3438
with:
35-
node: ${{ env.NODE_VERSION }}
39+
node: ${{ matrix.node-version }}
3640

3741
- name: Save build artifacts
3842
uses: actions/cache/save@v4
@@ -46,12 +50,16 @@ jobs:
4650
name: Run Unit Tests
4751
runs-on: ubuntu-latest
4852

53+
strategy:
54+
matrix:
55+
node-version: ['20', '22', '24']
56+
4957
steps:
5058
- uses: actions/checkout@v4
5159

5260
- uses: actions/setup-node@v4
5361
with:
54-
node-version: ${{ env.NODE_VERSION }}
62+
node-version: ${{ matrix.node-version }}
5563
cache: npm
5664

5765
- uses: actions/cache/restore@v4

0 commit comments

Comments
 (0)