Skip to content

Commit

Permalink
[Backport 2.x] Retry code coverage upload on failure (#3242)
Browse files Browse the repository at this point in the history
Backport of d7d7f62 from #3242

Signed-off-by: Peter Nied <[email protected]>
(cherry picked from commit d7d7f62)
  • Loading branch information
peternied committed Aug 26, 2023
1 parent d0544cf commit 6e92a76
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ jobs:
cache-disabled: true
arguments: |
${{ matrix.gradle_task }} -Dbuild.snapshot=false
-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 6e92a76

Please sign in to comment.