FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
354 stars 86 forks source link

Generate and publish code coverage reports in the CI #750

Closed Dentosal closed 4 months ago

Dentosal commented 4 months ago

Closes #745

This PR sets up code coverage reporting. It commits the report to a branch called codecov-pages, which contains a folder for each branch. Branch names are urlsafe-base64-encoded to avoid (security) bugs. Every time a PR workflow runs or the master receives new commits, a CI action pushes updated codecov report there.

The testing for this feature is done in https://github.com/Dentosal/test-repo, and ported here.

Possible improvements:

Repository setup

The configuration has to be done by someone who has permission to edit the repo settings: set deployment from codecov-pages branch, like this:

Screenshot of the settings page
xgreenx commented 4 months ago

Thank you, it works!=)

image