the coverage job should therefore look like this:
- name: Upload coverage data
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
if: ${{ !cancelled() }} (maybe) to upload coverage even when tests fail.
fail_ci_if_error: true to prevent that step from silently not working
and we should mention to (how to) add the CODECOV_TOKEN secret if we don’t already.
the coverage job should therefore look like this:
if: ${{ !cancelled() }}(maybe) to upload coverage even when tests fail.fail_ci_if_error: trueto prevent that step from silently not workingand we should mention to (how to) add the CODECOV_TOKEN secret if we don’t already.