Skip to content

Commit

Permalink
add codecov upload action in coverage.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Shourya742 committed Oct 9, 2024
1 parent c05d8cd commit 295dd81
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,27 @@ jobs:
protocols/cobertura.xml
roles/cobertura.xml
utils/cobertura.xml
codecov:
needs: tarpaulin-test

name: Codecov Upload
runs-on: ubuntu-latest

steps:

- name: Checkout repository
uses: actions/checkout@v3

- name: Download all workflow run artifacts
uses: actions/download-artifact@v3

- name: Display structure of downloaded files
run: ls -R

- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
files: tarpaulin-report/*.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 295dd81

Please sign in to comment.