Skip to content

Commit

Permalink
ci: fail ci if codecov error
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Aug 15, 2024
1 parent d4ef1b3 commit c045d3a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,15 @@ jobs:
if: startsWith(matrix.node-version, '20.')

- name: Generate Test Coverage
run: |
if [ -z "$CODECOV_TOKEN" ]; then
echo "Missing env variable CODECOV_TOKEN"
exit 1
fi
yarn run test:coverage:json
run: yarn run test:coverage:json
if: startsWith(matrix.node-version, '20.')
env:
CI: true

- name: Send results to codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
if: startsWith(matrix.node-version, '20.')

Expand Down

0 comments on commit c045d3a

Please sign in to comment.