Skip to content

Commit

Permalink
[Backport 2.x] Retry code coverage upload on failure (opensearch-proj…
Browse files Browse the repository at this point in the history
…ect#3242) (opensearch-project#3243)


Signed-off-by: Peter Nied <[email protected]>
(cherry picked from commit d7d7f62)
  • Loading branch information
peternied authored Aug 27, 2023
1 parent d0544cf commit d0a89f7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ jobs:
-x test
- name: Coverage
uses: codecov/codecov-action@v1
uses: Wandalen/wretry.action@v1.3.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/reports/jacoco/test/jacocoTestReport.xml
attempt_limit: 3
attempt_delay: 2000
action: codecov/codecov-action@v3
with: |
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./build/reports/jacoco/test/jacocoTestReport.xml
- uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit d0a89f7

Please sign in to comment.