Skip to content

Commit 16419f6

Browse files
Make Codecov integration optional
1 parent 9b65c09 commit 16419f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/coverage.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ jobs:
107107
retention-days: 14
108108

109109
- name: Upload coverage report to Codecov
110+
# Only run if the Codecov token is configured
111+
if: ${{ secrets.CODECOV_TOKEN != '' }}
112+
continue-on-error: true # Don't fail the workflow if Codecov upload fails
110113
uses: codecov/codecov-action@v3
111114
with:
112115
token: ${{ secrets.CODECOV_TOKEN }}
113116
files: lcov.info
114-
fail_ci_if_error: true
117+
fail_ci_if_error: false # Don't fail even if the Codecov upload fails

0 commit comments

Comments
 (0)