Skip to content

Integrate Codecov for coverage reporting and update badges#73

Merged
edvinskis merged 2 commits into
developfrom
adjust-ci-covetage
Jul 23, 2026
Merged

Integrate Codecov for coverage reporting and update badges#73
edvinskis merged 2 commits into
developfrom
adjust-ci-covetage

Conversation

@edvinskis

Copy link
Copy Markdown
Collaborator

This pull request updates the project's test coverage reporting workflow by switching from generating and committing a local coverage badge to using Codecov for coverage reporting and badge generation. The workflow is simplified, and the README badge is updated to use Codecov.

Coverage reporting and badge updates:

  • The GitHub Actions workflow in .github/workflows/coverage.yml now uploads coverage reports to Codecov using codecov/codecov-action@v5, replacing the previous steps that generated and committed a local coverage badge.
  • The README badge for coverage has been updated to use Codecov's badge instead of the locally generated SVG.

Workflow simplification:

  • The permissions block and the fetch-depth: 0 option in the checkout step have been removed, as they are no longer necessary for the new workflow.
  • The installation of the genbadge[coverage] package has been removed since badge generation is now handled by Codecov.

Replace the custom badge generation and auto-commit with a codecov/codecov-action. Removed the permissions block, checkout fetch-depth override, genbadge installation, and the steps that generated/committed badges; workflow now uploads reports/coverage/coverage.xml to Codecov to simplify coverage reporting.
Update README badge to use Codecov (linking to the reactix repo on the develop branch) instead of the previous coverage image.
@edvinskis
edvinskis requested a review from astoeriko July 23, 2026 09:14
@edvinskis
edvinskis marked this pull request as ready for review July 23, 2026 09:31
@edvinskis
edvinskis merged commit 6fa275d into develop Jul 23, 2026
4 checks passed
git pull --rebase origin develop
git push No newline at end of file
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v5

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The instructions on Codecov suggest to this here:

Suggested change
uses: codecov/codecov-action@v5
with: codecov/codecov-action@v5

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Don't know what the difference is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants