File tree 1 file changed +24
-10
lines changed
1 file changed +24
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : ci
2
2
on :
3
3
push :
4
- branches : [ master, release, alpha, beta ]
4
+ branches :
5
+ - master
5
6
pull_request :
6
- branches : [ '**' ]
7
+ branches :
8
+ - ' **'
7
9
jobs :
8
10
test :
11
+ strategy :
12
+ matrix :
13
+ include :
14
+ - name : Node.js 14
15
+ NODE_VERSION : 14
16
+ - name : Node.js 16
17
+ NODE_VERSION : 16
18
+ - name : Node.js 18
19
+ NODE_VERSION : 18
20
+ - name : Node.js 20
21
+ NODE_VERSION : 20
22
+ fail-fast : false
23
+ name : ${{ matrix.name }}
24
+ timeout-minutes : 15
9
25
runs-on : ubuntu-latest
10
- timeout-minutes : 30
11
26
steps :
12
- - name : Checkout repository
13
- uses : actions/checkout@v2
14
- - name : Setup Node
15
- uses : actions/setup-node@v2
27
+ - uses : actions/checkout@v2
28
+ - name : Use Node.js ${{ matrix.NODE_VERSION }}
29
+ uses : actions/setup-node@v1
16
30
with :
17
- node-version : 14
31
+ node-version : ${{ matrix.NODE_VERSION }}
18
32
- name : Cache Node.js modules
19
33
uses : actions/cache@v2
20
34
with :
21
35
path : ~/.npm
22
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36
+ key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
23
37
restore-keys : |
24
- ${{ runner.os }}-node-
38
+ ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
25
39
- name : Install dependencies
26
40
run : npm ci
27
41
- name : Build package
You can’t perform that action at this time.
0 commit comments