diff --git a/.github/workflows/branches.yml b/.github/workflows/branches.yml index 241ec1d5..82e0689b 100644 --- a/.github/workflows/branches.yml +++ b/.github/workflows/branches.yml @@ -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/CodeCoverageSummary@v1.3.0 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" diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index ad0f6428..9d3a7bae 100644 --- a/.github/workflows/main_ci.yml +++ b/.github/workflows/main_ci.yml @@ -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/CodeCoverageSummary@v1.3.0 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"