From 295dd81525e107a8c8fd61f5c7509d6bce3fb00b Mon Sep 17 00:00:00 2001 From: bit-aloo Date: Wed, 9 Oct 2024 18:53:34 +0530 Subject: [PATCH] add codecov upload action in coverage.yaml --- .github/workflows/coverage.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index c8e18d346d..c77a8ac57f 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -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 }} \ No newline at end of file