Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,31 @@ jobs:
- name: Run checks
run: make get-deps check

- name: Convert go coverage to corbetura format
run: |
go install github.com/boumenot/gocover-cobertura@latest
gocover-cobertura < test/coverage.out > test/coverage.xml

- name: Generate code coverage report
uses: irongut/[email protected]
with:
filename: test/coverage.xml
badge: false
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md

test:
name: Docker tests
runs-on: ubuntu-latest
Expand Down