File tree Expand file tree Collapse file tree 2 files changed +27
-13
lines changed Expand file tree Collapse file tree 2 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,35 @@ name: Test
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [master]
6
6
pull_request :
7
- branches : [ master ]
7
+ branches : [master]
8
8
9
9
jobs :
10
- build :
10
+ lint :
11
11
runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Use Node.js
15
+ uses : actions/setup-node@v1
16
+ with :
17
+ node-version : 14.x
18
+ - run : yarn --frozen-lockfile
19
+ - run : yarn lint
20
+ test :
12
21
strategy :
22
+ fail-fast : false
13
23
matrix :
24
+ os : [ubuntu-latest, windows-latest, macos-latest]
14
25
node-version : [10.x, 12.x, 14.x]
26
+ runs-on : ${{ matrix.os }}
15
27
steps :
16
- - uses : actions/checkout@v2
17
- - name : Use Node.js ${{ matrix.node-version }}
18
- uses : actions/setup-node@v1
19
- with :
20
- node-version : ${{ matrix.node-version }}
21
- - run : yarn --frozen-lockfile
22
- - run : yarn test
28
+ - uses : actions/checkout@v2
29
+ - name : Use Node.js ${{ matrix.node-version }}
30
+ uses : actions/setup-node@v1
31
+ with :
32
+ node-version : ${{ matrix.node-version }}
33
+ - run : yarn --frozen-lockfile
34
+ - run : yarn cover:ci
35
+ - if : ${{ matrix.os != 'windows-latest' }}
36
+ run : bash <(curl -s https://codecov.io/bash) -X gcov
Original file line number Diff line number Diff line change 52
52
"pretty" : " prettier --loglevel warn --write \" lib/**/*.{js,json}\" \" test/*.js\" " ,
53
53
"pretest" : " yarn lint" ,
54
54
"test" : " mocha --full-trace --check-leaks" ,
55
+ "test:only" : " mocha --full-trace --check-leaks" ,
55
56
"precover" : " yarn lint" ,
56
- "cover" : " nyc --reporter=html node node_modules/mocha/bin/_mocha" ,
57
- "pretravis" : " yarn lint" ,
58
- "travis" : " nyc --reporter=lcovonly node node_modules/mocha/bin/_mocha"
57
+ "cover" : " nyc --reporter=html node node_modules/mocha/bin/_mocha --full-trace --check-leaks" ,
58
+ "cover:ci" : " nyc --reporter=lcovonly node node_modules/mocha/bin/_mocha --full-trace --check-leaks"
59
59
},
60
60
"husky" : {
61
61
"hooks" : {
You can’t perform that action at this time.
0 commit comments