Skip to content

Commit

Permalink
chore(action): include Node 6.x w/ conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed May 30, 2020
1 parent 5e92fdf commit 0fb6d98
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [8, 10, 12]
nodejs: [6, 8, 10, 12]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
Expand All @@ -22,14 +22,21 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}

- name: Install
run: |
npm install
npm install -g nyc@13
run: npm install

- name: (coverage) Install
if: matrix.nodejs >= 12
run: npm install -g nyc

- name: Test w/ Coverage
- name: Test
run: npm test
if: matrix.nodejs < 12

- name: (coverage) Test
run: nyc --include=src npm test
if: matrix.nodejs >= 12

- name: Report
- name: (coverage) Report
if: matrix.nodejs >= 12
run: |
nyc report --reporter=text-lcov > coverage.lcov
Expand Down

0 comments on commit 0fb6d98

Please sign in to comment.