fix: replace Codecov upload with GitHub Job Summary for coverage#91
Conversation
Codecov uploads without a token hit a global rate limit (HTTP 429), causing intermittent CI failures unrelated to the actual test results. Closes #44 Switch to PHPUnit's built-in --coverage-text, piped to $GITHUB_STEP_SUMMARY. Coverage is now visible directly in the GitHub Actions run without any third-party service, token, or upload step. Remove .codecov.yml — no longer needed.
Code Coverage OverviewLanguages: PHP PHP / code-coverage/phpunitThe overall coverage in the Show a code coverage summary of the most covered files.
Updated |
There was a problem hiding this comment.
Pull request overview
This PR aims to eliminate intermittent CI failures caused by unauthenticated Codecov uploads hitting rate limits by removing the Codecov integration and switching coverage reporting to a GitHub-native mechanism.
Changes:
- Update the
code-coveragejob to generate a coverage XML file and upload it usingactions/upload-code-coverage@v1. - Add job-level
GITHUB_TOKENpermissions for coverage upload. - Remove
.codecov.ymlsince Codecov is no longer used.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/validate.yml | Replaces Codecov upload step with GitHub’s upload-code-coverage action and adjusts coverage generation. |
| .codecov.yml | Removes Codecov configuration now that Codecov is no longer used. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
## [6.13.2](v6.13.1...v6.13.2) (2026-07-07) ### Bug Fixes * replace Codecov upload with GitHub Job Summary for coverage ([#91](#91)) ([5ce81cf](5ce81cf))
|
🎉 This PR is included in version 6.13.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Codecov uploads without a token hit a global rate limit (HTTP 429),
causing intermittent CI failures unrelated to the actual test results.
Closes #44
Switch to
actions/upload-code-coverage@v1— GitHub's native code qualityfeature. PHPUnit generates a Cobertura XML report, which is uploaded to
GitHub's coverage API. The
github-code-quality[bot]then posts per-filecoverage breakdowns directly on each PR.
Remove
.codecov.yml— no longer needed.