👷 update codecov to v5#9
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions test workflow to use Codecov’s v5 uploader, keeping CI coverage reporting in place as part of the project’s test pipeline.
Changes:
- Bumps
codecov/codecov-actionfromv4tov5. - Simplifies Codecov step configuration and adds
CODECOV_TOKENsecret usage.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - name: Upload coverage reports to Codecov | ||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| file: ./coverage.xml | ||
| flags: unittests | ||
| name: codecov-umbrella | ||
| fail_ci_if_error: false | ||
| token: ${{ secrets.CODECOV_TOKEN }} |
There was a problem hiding this comment.
This upgrade also removes the explicit ./coverage.xml upload (previously configured via file:) and relies on Codecov's auto-discovery. If the action doesn't pick up coverage.xml (or the report path changes), coverage uploads can silently stop. Consider passing the v5 input for an explicit file list (e.g., files: ./coverage.xml) to preserve the previous behavior.
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| file: ./coverage.xml | ||
| flags: unittests | ||
| name: codecov-umbrella | ||
| fail_ci_if_error: false | ||
| token: ${{ secrets.CODECOV_TOKEN }} |
There was a problem hiding this comment.
This change makes the workflow depend on the CODECOV_TOKEN repository secret being present. If this repo is public (tokenless uploads) or you want CI to run on PRs from forks (secrets are not provided to forked PR workflows), consider omitting token: when not required or gating the upload step so fork PRs don't fail due to a missing secret.
Update codecov to v5