File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
strategy :
10
10
matrix :
11
- nodejs : [8, 10, 12]
11
+ nodejs : [6, 8, 10, 12]
12
12
steps :
13
13
- uses : actions/checkout@v1
14
14
- uses : actions/setup-node@v1
@@ -22,14 +22,21 @@ jobs:
22
22
key : ${{ runner.os }}-${{ hashFiles('**/package.json') }}
23
23
24
24
- 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
28
30
29
- - name : Test w/ Coverage
31
+ - name : Test
32
+ run : npm test
33
+ if : matrix.nodejs < 12
34
+
35
+ - name : (coverage) Test
30
36
run : nyc --include=src npm test
37
+ if : matrix.nodejs >= 12
31
38
32
- - name : Report
39
+ - name : (coverage) Report
33
40
if : matrix.nodejs >= 12
34
41
run : |
35
42
nyc report --reporter=text-lcov > coverage.lcov
You can’t perform that action at this time.
0 commit comments