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
3
3
on : [push]
4
4
5
5
jobs :
6
- test :
6
+ test_matrix :
7
+ runs-on : ubuntu-latest
7
8
strategy :
8
9
matrix :
9
- node :
10
- - 10
11
- - 12
10
+ node_version :
12
11
- 14
13
-
14
- runs-on : ubuntu-latest
15
-
12
+ - 16
13
+ - 18
16
14
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
23
18
with :
24
- node-version : ${{ matrix.node }}
19
+ node-version : ${{ matrix.node_version }}
25
20
cache : npm
26
-
27
- # Install dependencies
28
21
- run : npm ci
29
-
30
- # Run tests
31
22
- 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