Skip to content

Commit

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

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

0 comments on commit d4ef1b3

Please sign in to comment.