Skip to content

Commit

Permalink
ci: add logic to retry codecov upload (#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang authored Jan 15, 2024
1 parent 7be9834 commit 81e77c0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ jobs:
run: |
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info --locked --target=${{ matrix.info.target }}
# TODO: Might be good to allow this to retry.
# The token is generally not needed, but sometimes the default shared token hits limits.
- name: Upload to codecov.io
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # 3.1.4
uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0
with:
files: lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }} # This is generally not needed, but sometimes the default shared token hits limits.
flags: ${{ matrix.info.os }}
action: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # 3.1.4
with: |
files: lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.info.os }}
attempt_limit: 5
attempt_delay: 1500

0 comments on commit 81e77c0

Please sign in to comment.