Skip to content

Commit

Permalink
Upload coverage reports
Browse files Browse the repository at this point in the history
Upload the raw coverage reports to GitHub Actions.
  • Loading branch information
martincostello authored Jun 28, 2023
1 parent 9d7b734 commit 7593830
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,19 @@ jobs:
env:
RUN_MUTATION_TESTS: ${{ matrix.os_name == 'linux' && !startsWith(github.ref, 'refs/tags/') && 'true' || 'false' }}

- name: Upload coverage to Codecov
- name: Upload Coverage Reports
if: always()
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: coverage-${{ matrix.os_name }}
path: ./artifacts/coverage-reports
if-no-files-found: ignore

- name: Upload coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
files: ./artifacts/coverage-reports/Polly.Core.Tests/Cobertura.xml,./artifacts/coverage-reports/Polly.Specs/Cobertura.xml,./artifacts/coverage-reports/Polly.RateLimiting.Tests/Cobertura.xml,./artifacts/coverage-reports/Polly.Extensions.Tests/Cobertura.xml,
flags: ${{ matrix.os_name }}
if-no-files-found: ignore

- name: Upload Mutation Report
if: always() && matrix.os_name == 'linux'
Expand Down

0 comments on commit 7593830

Please sign in to comment.