Repository files navigation
store repo code coverage in git-notes .
add coverage diff to PRs (example ):
@@ Coverage info. Don't edit past this section @@
+ instruction: 60% (+1)
+ line: 61% (+1)
class: 78%
+ branch: 44% (+1)
+ method: 67% (+2)
+ complexity: 57% (+1)
Java (jacoco) and GCC (cobertura) reports supported
Enable actions to push notes to the repo in settings:
Add action for PR open/reopen events, example: https://github.com/sukolenvo/simple-cpp-github-rest/blob/master/.github/workflows/coverage-notes-pr.yml
Update CI action that runs tests & code coverage on push event (example ):
- name : coverage-note
uses : sukolenvo/coverage-notes-action@v0.4.3
if : ${{ matrix.compiler.gcovExecutable != '' && matrix.build-type == 'Debug' }}
continue-on-error : true
with :
repo_token : ${{ secrets.GITHUB_TOKEN }}
cobertura : build/coverage.xml
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.