feat(ci): add Codecov upload to release workflow#605
Merged
JasonXuDeveloper merged 2 commits intomasterfrom Jan 30, 2026
Merged
feat(ci): add Codecov upload to release workflow#605JasonXuDeveloper merged 2 commits intomasterfrom
JasonXuDeveloper merged 2 commits intomasterfrom
Conversation
Add upload-coverage job that runs after Unity tests complete, uploading coverage reports to Codecov with util and ui flags. This ensures coverage is tracked for releases, not just PRs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
Match pr-tests.yml behavior where Codecov upload failures will fail the workflow. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
There was a problem hiding this comment.
Pull request overview
Adds a Codecov upload job to the release workflow so coverage from Unity tests on release builds is uploaded consistently with PR builds.
Changes:
- Introduced an
upload-coveragejob inrelease.ymlthat depends onrun-testsand uploads coverage artifacts to Codecov. - Reused the same artifact name (
Coverage-results-2022.3.55f1), file glob (coverage/**/TestCoverageResults*.xml), and flags (util,ui) as the PR workflow for consistency. - Configured
fail_ci_if_error: falsefor both Codecov upload steps so failures in coverage upload do not block releases.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
upload-coveragejob torelease.ymlthat uploads coverage to Codecov after Unity tests completeutil,ui) aspr-tests.ymlfor consistencyprepare-releasesince they both only depend onrun-testsfail_ci_if_error: falseto not block releases if Codecov upload failsWhy
Previously, the release workflow ran Unity tests but never uploaded coverage to Codecov. Only PRs uploaded coverage via
pr-tests.yml. This meant:Test plan
🤖 Generated with Claude Code