File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 strategy :
1010 matrix :
11- nodejs : [8, 10, 12]
11+ nodejs : [6, 8, 10, 12]
1212 steps :
1313 - uses : actions/checkout@v1
1414 - uses : actions/setup-node@v1
@@ -22,14 +22,21 @@ jobs:
2222 key : ${{ runner.os }}-${{ hashFiles('**/package.json') }}
2323
2424 - name : Install
25- run : |
26- npm install
27- npm install -g nyc@13
25+ run : npm install
26+
27+ - name : (coverage) Install
28+ if : matrix.nodejs >= 12
29+ run : npm install -g nyc
2830
29- - name : Test w/ Coverage
31+ - name : Test
32+ run : npm test
33+ if : matrix.nodejs < 12
34+
35+ - name : (coverage) Test
3036 run : nyc --include=src npm test
37+ if : matrix.nodejs >= 12
3138
32- - name : Report
39+ - name : (coverage) Report
3340 if : matrix.nodejs >= 12
3441 run : |
3542 nyc report --reporter=text-lcov > coverage.lcov
You can’t perform that action at this time.
0 commit comments