From d00d774465d9a20bbb8d6efa23dfd9c5da2f7449 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Fri, 25 Aug 2023 15:38:50 -0500 Subject: [PATCH] [Backport 2.x] Retry code coverage upload on failure (#3242) Backport of d7d7f626042a42626bacd25de4af178b8dc37e18 from #3242 Signed-off-by: Peter Nied (cherry picked from commit d7d7f626042a42626bacd25de4af178b8dc37e18) --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecbf4242dd..f750f75794 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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()