Generate and publish code coverage reports in the CI #750
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 themaster
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:
index.html
that contains link to all branchesRepository setup
The configuration has to be done by someone who has permission to edit the repo settings: set deployment from
![Screenshot of the settings page](https://private-user-images.githubusercontent.com/2204863/336674804-e22d5c43-825d-4fd2-b5e1-0a2c3e826ce8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2ODExNjYsIm5iZiI6MTcxOTY4MDg2NiwicGF0aCI6Ii8yMjA0ODYzLzMzNjY3NDgwNC1lMjJkNWM0My04MjVkLTRmZDItYjVlMS0wYTJjM2U4MjZjZTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjlUMTcwNzQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTIwYTZjYzhmMjNiY2NhMTEwYmJiMTk0MjBhN2ZhYjQ4NGYyNWU5MjdjOWFhZmRhZTJhZTNmYjEyMWE2ZmIzNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.mZ-OII-GONYbSC3WMgj-47U10Z3cu3mKx-CsV-W0kjI)
codecov-pages
branch, like this: