Skip to content

Commit 0fb6d98

Browse files
committedMay 30, 2020
chore(action): include Node 6.x w/ conditionals
1 parent 5e92fdf commit 0fb6d98

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed
 

‎.github/workflows/ci.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
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

0 commit comments

Comments
 (0)
Please sign in to comment.