Skip to content

Commit

Permalink
chore(action): revert to nyc for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jan 27, 2021
1 parent bcbe1c1 commit 22827ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:

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

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

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

- name: (coverage) Report
if: matrix.nodejs >= 14
run: |
c8 report --reporter=text-lcov > coverage.lcov
nyc report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 22827ac

Please sign in to comment.