Skip to content

Commit aa84abb

Browse files
committed
Only run codecov check on pull requests
This prevents a red x on the main branch / repository homepage
1 parent feb1375 commit aa84abb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- run: npm install
2626
- run: npm test -- --coverage
2727
- name: Upload coverage to Codecov
28+
if: ${{ github.event_name == 'pull_request' }}
2829
uses: codecov/codecov-action@v5
2930
env:
3031
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)