File tree Expand file tree Collapse file tree 1 file changed +18
-23
lines changed Expand file tree Collapse file tree 1 file changed +18
-23
lines changed Original file line number Diff line number Diff line change 1
1
name : Node CI
2
2
3
- on :
4
- push :
5
- branches :
6
- - $default-branch
7
- pull_request :
8
- branches :
9
- - " *"
10
-
3
+ on : [push]
4
+ env :
5
+ FORCE_COLOR : 2
11
6
jobs :
12
- build :
13
-
14
- runs-on : ubuntu-latest
15
-
7
+ test :
8
+ name : v${{ matrix.node }} @ ${{ matrix.os }}
9
+ runs-on : ${{ matrix.os }}
16
10
strategy :
17
11
matrix :
18
- node-version : [12.x, 14.x , 16.x ]
19
-
12
+ node : [14 , 16, 18 ]
13
+ os : [ubuntu-latest]
20
14
steps :
21
- - uses : actions/checkout@v1
22
- - name : Use Node.js ${{ matrix.node-version }}
23
- uses : actions/setup-node@v1
15
+ - uses : actions/checkout@v3
16
+ - name : Use Node.js ${{ matrix.node }}
17
+ uses : actions/setup-node@v3
24
18
with :
25
- node-version : ${{ matrix.node-version }}
26
- - name : npm install, build, and test
19
+ node-version : ${{ matrix.node }}
20
+ - run : npm install
21
+ - name : Build and run tests
22
+ run : |
23
+ npm run build --if-present
24
+ npm test
25
+ - name : Run browser tests and lint
27
26
run : |
28
- npm install
29
- npm run test
30
27
npm run browser-tests
31
28
npm run lint
32
- env :
33
- CI : true
You can’t perform that action at this time.
0 commit comments