Skip to content

Commit

Permalink
fix(ci): nyc -> c8
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Dec 4, 2023
1 parent 20e9cb2 commit 9f1a9ec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

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

- name: Build
run: npm run prepack
Expand All @@ -36,13 +36,13 @@ jobs:
if: matrix.nodejs < 18

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

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

0 comments on commit 9f1a9ec

Please sign in to comment.