File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments