File tree 3 files changed +328
-204
lines changed
3 files changed +328
-204
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,33 @@ name: Test
9
9
- opened
10
10
- synchronize
11
11
jobs :
12
+ test_matrix :
13
+ strategy :
14
+ matrix :
15
+ node-version :
16
+ - ' 14.17'
17
+ - 16
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+ - name : Use Node.js ${{ matrix.node-version }}
22
+ uses : actions/setup-node@v2
23
+ with :
24
+ cache : npm
25
+ node-version : ${{ matrix.node-version }}
26
+ - run : npm ci
27
+ - name : Ensure dependencies are compatible with the version of node
28
+ run : npx ls-engines
29
+ - run : npm test
12
30
test :
13
31
runs-on : ubuntu-latest
32
+ needs : test_matrix
14
33
steps :
15
34
- uses : actions/checkout@v2
16
35
- uses : actions/setup-node@v2
17
36
with :
37
+ node-version : lts/*
18
38
cache : npm
19
- node-version : 16
20
39
- run : npm ci
21
- - run : npm test
40
+ - run : npm run lint
41
+ - run : npx lockfile-lint --path package-lock.json
You can’t perform that action at this time.
0 commit comments