Skip to content

Commit

Permalink
chore: replaces c8 with node native coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed May 11, 2024
1 parent 8233e66 commit e1fecc1
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 669 deletions.
9 changes: 0 additions & 9 deletions .c8rc.json

This file was deleted.

13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
matrix:
node-version:
- 18.x
- 20.x
- 22.x
platform:
- ubuntu-latest
Expand All @@ -53,12 +54,18 @@ jobs:
- run: npm install
- run: npm run build
- run: npm run depcruise -- --no-cache --progress performance-log
if: always() && matrix.node-version != '20.x'
- run: npm test
- name: emit coverage results to step summary
if: always() && matrix.node-version == env.NODE_LATEST
if: always() && matrix.node-version != '20.x'
- name: run test & emit results to step summary
# code coverage report on 20.x only, as --experimental-test-coverage on node 22.x is not stable
# (gives varying results over identical runs)
if: always() && matrix.node-version == '20.x'
run: |
echo '## Code coverage' >> $GITHUB_STEP_SUMMARY
npx tsx tools/istanbul-json-summary-to-markdown.ts < coverage/coverage-summary.json >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
npm test >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: on pushes to the default branch emit full depcruise results to step summary
if: always() && matrix.node-version == env.NODE_LATEST && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
run: |
Expand Down
Loading

0 comments on commit e1fecc1

Please sign in to comment.