Build/Test Tools: Return an error when uploading a test coverage report fails.

`true` is now passed to the `fail_ci_if_error` input when the `codecov/codecov-action` action is used.

When uploading a code coverage report is unsuccessful, the action will now fail and return an error. This will help avoid situations like #56022 where the report was suddenly failing to upload even though the workflow itself appeared to be successful.

See #55652.

git-svn-id: https://develop.svn.wordpress.org/trunk@53554 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2022-06-22 00:18:42 +00:00
parent e902e52e95
commit b2f9e67757

View File

@ -164,6 +164,7 @@ jobs:
with:
file: wp-code-coverage-single-clover-${{ github.sha }}.xml
flags: single,php
fail_ci_if_error: true
- name: Run tests as a multisite install
if: ${{ matrix.multisite }}
@ -178,6 +179,7 @@ jobs:
with:
file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml
flags: multisite,php
fail_ci_if_error: true
slack-notifications:
name: Slack Notifications