Create a GitHub CI workflow for publishing unit test reports#21
Conversation
|
@msteinert I now have unit test result reports and code coverage reports up and running here in GitHub CI! See f.e. https://github.com/msteinert/bstring/actions/runs/16941054221 These actions that I'm using have the ability to decorate PRs with the reports for an even nicer integration. Would you be open to granting the two permissions required? (create an issue comment and create a check run) |
|
To enable this I need to add a GitHub seccret |
|
Hmm, actually let me try first if it's a simple missing permissions in the workflow definition. |
LCOV of commit
|
Build and run unit tests with code coverage support, execute tests to get a junit report, publish the report, generate and publish a lcon style code coverage report
|
|
@msteinert Problem solved. No need to prepare any token. The coverage report is now posted to the PR! Now the only outstanding issue is that the code coverage stats includes the test code itself, which inflates the coverage stats. There's a known limitation with the interaction between meson and lcov as described in the issue below. I can attempt a workaround. |
|
Nicely done! It would be really cool if the Maybe this (publish to Coveralls)? https://github.com/marketplace/actions/gcovr-action Or is it overkill for this project? |



Build and run unit tests with code coverage support, execute tests to get a junit report, publish the report, generate and publish a lcon style code coverage report