Skip to content

Commit

Permalink
chore: update CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jul 2, 2022
1 parent 56ab81f commit bc4f827
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [6, 8, 10, 12]
nodejs: [6, 8, 10, 12, 14, 16]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.nodejs }}

Expand All @@ -25,19 +25,19 @@ jobs:
run: npm install

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

- name: Test
run: npm test
if: matrix.nodejs < 12
if: matrix.nodejs < 16

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

- name: (coverage) Report
if: matrix.nodejs >= 12
if: matrix.nodejs >= 16
run: |
nyc report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
Expand Down

0 comments on commit bc4f827

Please sign in to comment.