We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d46d57 commit 99168f2Copy full SHA for 99168f2
1 file changed
.github/workflows/test.yml
@@ -42,26 +42,27 @@ jobs:
42
key: ${{ env.CACHE_KEY }}
43
44
unit:
45
- needs: build # Require build to complete before running tests
46
-
47
name: Unit Tests
48
runs-on: ubuntu-latest
49
+ strategy:
+ matrix:
50
+ NODE_VERSION: [20, 22]
51
+
52
steps:
53
- name: Checkout code
54
uses: actions/checkout@v4
55
56
- name: Setup Node
57
uses: actions/setup-node@v4
58
with:
- node-version: ${{ env.NODE_VERSION }}
59
+ node-version: ${{ matrix.NODE_VERSION }}
60
cache: npm
61
- - name: Restore build artifacts
- uses: actions/cache/restore@v4
62
+ - name: Build package
63
+ uses: ./.github/actions/build
64
- path: .
- key: ${{ env.CACHE_KEY }}
65
+ node: ${{ matrix.NODE_VERSION }}
66
67
- name: Run tests
68
run: npm run test:ci
0 commit comments