PR sync trigger + coverage config#379
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds code coverage reporting to the project using c8 (a native V8 code coverage tool). The implementation includes integration with GitHub Actions to automatically report coverage metrics on pull requests.
- Adds
c8package for code coverage collection - Configures coverage reporting for unit and rate limit tests
- Adds a GitHub Actions workflow job to generate and report coverage metrics on PRs
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Adds c8 as a dev dependency and wraps unit/ratelimit test commands with c8 for coverage collection; adds new coverage:report script |
| package-lock.json | Installs c8 v10.1.3 and its dependencies including istanbul tooling |
| .gitignore | Excludes the coverage/ directory from version control |
| .github/workflows/test.yaml | Adds a new coverage job that runs tests with coverage and reports results to PRs using zgosalvez/github-actions-report-lcov action; updates quote styles to double quotes for consistency |
| .c8rc.json | Configures c8 to include TypeScript source files, exclude test directories and generated routes, and output lcov format reports |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9ecb272 to
702402d
Compare
fb976e4 to
3049ea5
Compare
dblane-digicatapult
previously approved these changes
Nov 7, 2025
dblane-digicatapult
approved these changes
Nov 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Checklist
PR Type
Linked tickets
https://digicatapult.atlassian.net/browse/NIDT-188
High level description
Trigger npm tests on GitHub PR sync/open/reopen rather than on push. NOTE - Only triggers if PR has no merge conflicts with the base branch.
Set c8 config for this repo
Detailed description
Describe alternatives you've considered
Operational impact
Additional context