Fix sending coverage to codecov in node workflow

This commit is contained in:
Shivam Mathur 2022-01-29 04:12:27 +05:30
parent 495989aff1
commit 175c9649c4
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -27,6 +27,8 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup Node.js 16.x - name: Setup Node.js 16.x
uses: actions/setup-node@v1 uses: actions/setup-node@v1
@ -49,6 +51,10 @@ jobs:
run: npm audit run: npm audit
- name: Send Coverage - name: Send Coverage
continue-on-error: true uses: codecov/codecov-action@v2
timeout-minutes: 1 with:
run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/lcov.info -n github-actions-codecov-${{ matrix.operating-system }} token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/lcov.info
name: github-actions-codecov-${{ matrix.operating-system }}
fail_ci_if_error: false
verbose: true