Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replaces c8 with node native coverage #203

Merged
merged 1 commit into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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