1
+ ---
1
2
name : Node CI
2
3
3
4
on : [push, pull_request]
8
9
runs-on : ${{ matrix.os }}
9
10
10
11
strategy :
12
+ fail-fast : false
11
13
matrix :
12
14
node-version : [14.x, 16.x, 18.x, 20.x]
13
15
os : [ubuntu-latest, windows-latest, macOS-latest]
14
16
15
17
steps :
16
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v3
17
19
18
- - name : Use Node.js ${{ matrix.node-version }}
19
- uses : actions/setup-node@v3
20
- with :
21
- node-version : ${{ matrix.node-version }}
20
+ - name : Use Node.js ${{ matrix.node-version }}
21
+ uses : actions/setup-node@v3
22
+ with :
23
+ node-version : ${{ matrix.node-version }}
22
24
23
- - name : Install
24
- run : |
25
- npm install
25
+ # workaround for failing tests on Node.js 14.x
26
+ # see https://github.com/actions/setup-node/issues/411
27
+ - name : Force install specific npm version
28
+ run : |
29
+ npm install --global [email protected]
30
+ npm install --global [email protected]
26
31
27
- - name : Lint
28
- run : |
29
- npm run lint
32
+ - name : Install
33
+ run : |
34
+ npm install
30
35
31
- - name : Unit test
32
- run : |
33
- npm run test:unit
36
+ - name : Lint
37
+ run : |
38
+ npm run lint
39
+
40
+ - name : Unit test
41
+ run : |
42
+ npm run test:unit
34
43
35
44
license :
36
45
name : License check
@@ -41,17 +50,17 @@ jobs:
41
50
node-version : [20.x]
42
51
43
52
steps :
44
- - uses : actions/checkout@v3
53
+ - uses : actions/checkout@v3
45
54
46
- - name : Use Node.js ${{ matrix.node-version }}
47
- uses : actions/setup-node@v3
48
- with :
49
- node-version : ${{ matrix.node-version }}
55
+ - name : Use Node.js ${{ matrix.node-version }}
56
+ uses : actions/setup-node@v3
57
+ with :
58
+ node-version : ${{ matrix.node-version }}
50
59
51
- - name : Install
52
- run : |
53
- npm install
60
+ - name : Install
61
+ run : |
62
+ npm install
54
63
55
- - name : License checker
56
- run : |
57
- npm run license-checker
64
+ - name : License checker
65
+ run : |
66
+ npm run license-checker
0 commit comments