Repository navigation
Upload Cobertura coverage report to GitHub code coverage in CI - #69
Merged
framinosona merged 2 commits intoNov 22, 2026
Merged
Conversation
Co-authored-by: framinosona <2520362+framinosona@users.noreply.github.com>
Code coverage overviewLanguages: C# C# / code-coverage-agent
Line coverage data for the main branch is not yet available. View coverage of the 10 most covered files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
framinosona
approved these changes
Nov 22, 2026
framinosona
deleted the
code-coverage-agent/setup-code-coverage-reporting
branch
November 22, 2026 20:49
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.
Summary
CI already ran tests with
coverletand produced a Cobertura report, but it was never surfaced to GitHub's code coverage API — it was only bundled into the generictestsartifact. This adds a dedicated coverage artifact upload and a job that publishes it viaactions/upload-code-coverage.Why
Developers had no PR-level or default-branch coverage visibility in GitHub, even though a trustworthy native Cobertura report was already being generated by
coverlet.msbuildduringdotnet test. Project-level coverage config was left untouched — it already works locally and in IDEs.Change Type
Affected Areas
Behavior And Compatibility
No build, toolchain, or job-structure changes — purely additive CI steps.
Changes
.github/workflows/ci.ymlbuildjob: uploadOutput/Tests/coverage.cobertura.xmlas a dedicatedcoverage-report-csharpartifact (skipped for fork PRs).upload-coverage-csharpjob: downloads the artifact and publishes it withactions/upload-code-coverage@v1(language: C#,label: code-coverage-agent), scoped with job-levelcode-quality: writepermission.pull_request/push(main/master) triggers already cover PR feedback and default-branch baseline..gitignore: addedoutput//Output/so generated coverage reports are never committed.Tests
dotnet test -p:CollectCoverage=true -p:CoverletOutputFormat=coberturaproduces a valid Cobertura XML report.Documentation
Checklist
type(scope): subject)