-
-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: retry codecov steps one time if they fail
- Loading branch information
1 parent
034be1c
commit d6fdfc9
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,11 +229,22 @@ jobs: | |
# We don't upload codecov for release branches, as we don't want a failing coverage check to block a release. | ||
# We don't upload codecov for scheduled runs as CodeCov only accepts a limited amount of uploads per commit. | ||
- name: Push code coverage to codecov | ||
id: codecov_1 | ||
uses: codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 # [email protected] | ||
if: ${{ contains(matrix.platform, 'iOS') && !contains(github.ref, 'release') && github.event.schedule == '' }} | ||
with: | ||
# Although public repos should not have to specify a token there seems to be a bug with the Codecov GH action, which can | ||
# be solved by specifying the token, see https://github.com/codecov/codecov-action/issues/557#issuecomment-1224970469 | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: false | ||
verbose: true | ||
|
||
# Sometimes codecov uploads etc can fail. Retry one time to rule out e.g. intermittent network failures. | ||
- name: Push code coverage to codecov | ||
id: codecov_2 | ||
uses: codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 # [email protected] | ||
if: steps.codecov_1.outcome == 'failure' && ${{ contains(matrix.platform, 'iOS') && !contains(github.ref, 'release') && github.event.schedule == '' }} | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
verbose: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters