File tree Expand file tree Collapse file tree 3 files changed +7965
-1087
lines changed Expand file tree Collapse file tree 3 files changed +7965
-1087
lines changed Original file line number Diff line number Diff line change @@ -3,29 +3,31 @@ name: Test
33on : [push]
44
55jobs :
6- test :
6+ test_matrix :
7+ runs-on : ubuntu-latest
78 strategy :
89 matrix :
9- node :
10- - 10
11- - 12
10+ node_version :
1211 - 14
13-
14- runs-on : ubuntu-latest
15-
12+ - 16
13+ - 18
1614 steps :
17- # Setup the local repo
18- - uses : actions/checkout@v1
19-
20- # Setup Node.js with the correct version
21- - name : Use Node.js ${{ matrix.node }}
22- uses : actions/setup-node@v2
15+ - uses : actions/checkout@v3
16+ - name : Use Node.js ${{ matrix.node_version }}
17+ uses : actions/setup-node@v3
2318 with :
24- node-version : ${{ matrix.node }}
19+ node-version : ${{ matrix.node_version }}
2520 cache : npm
26-
27- # Install dependencies
2821 - run : npm ci
29-
30- # Run tests
3122 - run : npm test
23+ test :
24+ runs-on : ubuntu-latest
25+ needs : test_matrix
26+ steps :
27+ - uses : actions/checkout@v3
28+ - uses : actions/setup-node@v3
29+ with :
30+ cache : npm
31+ node-version : 16
32+ - run : npm ci
33+ - run : npm run lint
You can’t perform that action at this time.
0 commit comments