Skip to content

Commit

Permalink
test different coverage summary report
Browse files Browse the repository at this point in the history
  • Loading branch information
zingmane committed Oct 25, 2023
1 parent 3fe658d commit 4f0c9f0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,14 @@ jobs:
fail-on-error: "true"
max-annotations: "10"

- name: Coverage Report
uses: 5monkeys/cobertura-action@master
- name: Coverage Summary Report
uses: irongut/[email protected]
with:
path: build/reports/scoverage/cobertura.xml
minimum_coverage: 80
only_changed_files: true
filename: build/reports/scoverage/cobertura.xml
thresholds: '60 80'
format: text
badge: false
fail_below_min: true

publish-test-results:
name: "Publish Unit Tests Results"
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,21 @@ jobs:
fail-on-error: "true"
max-annotations: "10"

- name: Coverage Report
uses: 5monkeys/cobertura-action@master
- name: Coverage Summary Report
uses: irongut/[email protected]
with:
path: build/reports/scoverage/cobertura.xml
minimum_coverage: 80
filename: build/reports/scoverage/cobertura.xml
thresholds: '60 80'
format: markdown
badge: true
fail_below_min: true

- 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

publish-test-results:
name: "Publish Unit Tests Results"
Expand Down

0 comments on commit 4f0c9f0

Please sign in to comment.