Skip to content

Commit 99168f2

Browse files
Run CI against Node 20 and 22
1 parent 8d46d57 commit 99168f2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,27 @@ jobs:
4242
key: ${{ env.CACHE_KEY }}
4343

4444
unit:
45-
needs: build # Require build to complete before running tests
46-
4745
name: Unit Tests
4846
runs-on: ubuntu-latest
4947

48+
strategy:
49+
matrix:
50+
NODE_VERSION: [20, 22]
51+
5052
steps:
5153
- name: Checkout code
5254
uses: actions/checkout@v4
5355

5456
- name: Setup Node
5557
uses: actions/setup-node@v4
5658
with:
57-
node-version: ${{ env.NODE_VERSION }}
59+
node-version: ${{ matrix.NODE_VERSION }}
5860
cache: npm
5961

60-
- name: Restore build artifacts
61-
uses: actions/cache/restore@v4
62+
- name: Build package
63+
uses: ./.github/actions/build
6264
with:
63-
path: .
64-
key: ${{ env.CACHE_KEY }}
65+
node: ${{ matrix.NODE_VERSION }}
6566

6667
- name: Run tests
6768
run: npm run test:ci

0 commit comments

Comments
 (0)