From 175c9649c43ce7f8b8f42c2b3c61bd0699b0531c Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 29 Jan 2022 04:12:27 +0530 Subject: [PATCH] Fix sending coverage to codecov in node workflow --- .github/workflows/node-workflow.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node-workflow.yml b/.github/workflows/node-workflow.yml index c17161ba..9c2e70e6 100644 --- a/.github/workflows/node-workflow.yml +++ b/.github/workflows/node-workflow.yml @@ -27,6 +27,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 2 - name: Setup Node.js 16.x uses: actions/setup-node@v1 @@ -49,6 +51,10 @@ jobs: run: npm audit - name: Send Coverage - continue-on-error: true - timeout-minutes: 1 - run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/lcov.info -n github-actions-codecov-${{ matrix.operating-system }} + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage/lcov.info + name: github-actions-codecov-${{ matrix.operating-system }} + fail_ci_if_error: false + verbose: true