Skip to content

Conversation

@JasonXuDeveloper
Copy link
Owner

Summary

  • Add upload-coverage job to release.yml that uploads coverage to Codecov after Unity tests complete
  • Uses the same flags (util, ui) as pr-tests.yml for consistency
  • Runs in parallel with prepare-release since they both only depend on run-tests
  • Uses fail_ci_if_error: false to not block releases if Codecov upload fails

Why

Previously, the release workflow ran Unity tests but never uploaded coverage to Codecov. Only PRs uploaded coverage via pr-tests.yml. This meant:

  • Coverage data was generated but discarded during releases
  • Codecov only received coverage reports from PR builds, not release builds

Test plan

  • Merge this PR
  • Run a release workflow manually
  • Verify coverage uploads appear in Codecov dashboard for the release commit

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings January 30, 2026 04:05
@github-actions github-actions bot added the ci label Jan 30, 2026
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>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-coverage job in release.yml that depends on run-tests and 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: false for 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.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: Copilot review found no issues and Unity Tests passed (or were skipped for non-code changes).

@JasonXuDeveloper JasonXuDeveloper enabled auto-merge (squash) January 30, 2026 04:06
@JasonXuDeveloper JasonXuDeveloper merged commit 92d5219 into master Jan 30, 2026
15 checks passed
@JasonXuDeveloper JasonXuDeveloper deleted the feat/release-codecov-upload branch January 30, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant