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 049b651
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,29 @@ 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: coverage-report/*.xml, tarpaulin-report/*.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 049b651

Please sign in to comment.