ci: Add CodeCov integration for code coveerage reporting - #21
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds Codecov integration to enable code coverage tracking and reporting for the MultiLock project. The changes include a Codecov configuration file, a coverage badge in the README, and updates to CI/CD workflows to collect and upload coverage data.
Key Changes
- Added Codecov configuration with coverage thresholds and ignore patterns for test/sample files
- Integrated XPlat Code Coverage collection in both build-and-test and publish-nuget workflows
- Added Codecov badge to README for visibility of coverage status
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| codecov.yml | New Codecov configuration defining coverage requirements, status checks, and paths to ignore |
| README.md | Added Codecov badge to display coverage status on the main branch |
| .github/workflows/build-and-test.yml | Updated to collect code coverage and upload results to Codecov |
| .github/workflows/publish-nuget.yml | Updated to collect code coverage and upload results to Codecov |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add code coverage collection to build-and-test workflow - Add code coverage collection to publish-nuget workflow - Upload coverage reports to CodeCov in both workflows - Create codecov.yml to configure coverage targets and exclusions - Add CodeCov badge to README.md Coverage is collected using coverlet's XPlat Code Coverage and uploaded to CodeCov for tracking and PR comments. Test and sample projects are excluded from coverage calculations.
steingran
force-pushed
the
codecov-changes
branch
from
November 9, 2025 22:13
8faeeec to
3ffa18a
Compare
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.
Description
Add CodeCov integration for code coveerage reporting
Type of Change
Related Issue
Changes Made
Coverage is collected using coverlet's XPlat Code Coverage and uploaded to CodeCov for tracking and PR comments. Test and sample projects are excluded from coverage calculations.
Testing
Checklist
Labels
Additional Notes