Skip to content

Commit b3f221d

Browse files
committed
ci: add Node 20 to test and build matrix
1 parent 18f6e6e commit b3f221d

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,18 @@ jobs:
4343
- run: npm run typecheck
4444

4545
test:
46-
name: Unit Tests
46+
name: Unit Tests (Node ${{ matrix.node-version }})
4747
runs-on: ubuntu-latest
48+
strategy:
49+
matrix:
50+
node-version: [20, 22]
4851
steps:
4952
- uses: actions/checkout@v5
5053

5154
- name: Setup Node.js
5255
uses: actions/setup-node@v5
5356
with:
54-
node-version: 22
57+
node-version: ${{ matrix.node-version }}
5558
cache: 'npm'
5659

5760
- run: npm ci
@@ -60,15 +63,18 @@ jobs:
6063
CI: true
6164

6265
build:
63-
name: Build
66+
name: Build (Node ${{ matrix.node-version }})
6467
runs-on: ubuntu-latest
68+
strategy:
69+
matrix:
70+
node-version: [20, 22]
6571
steps:
6672
- uses: actions/checkout@v5
6773

6874
- name: Setup Node.js
6975
uses: actions/setup-node@v5
7076
with:
71-
node-version: 22
77+
node-version: ${{ matrix.node-version }}
7278
cache: 'npm'
7379

7480
- run: npm ci

0 commit comments

Comments
 (0)