From c1388fd08046abc1dc40a5f5d18bfca4033fb65d Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 30 Apr 2024 09:17:25 +0300 Subject: [PATCH] Add several retries for the test run before it fails --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9b2c6fa2..b9c10c444 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: jobs: linux-test-runner: name: Linux Test Runner - timeout-minutes: 30 + timeout-minutes: 90 runs-on: ubuntu-22.04 steps: - name: Checkout @@ -31,7 +31,14 @@ jobs: - name: Install deps run: npm i - name: Run tests - run: npm test -- --reporter=json --reporter-option output=test-report.json + uses: nick-fields/retry@v3 + continue-on-error: false + with: + timeout_minutes: 20 + retry_wait_seconds: 10 + max_attempts: 3 + retry_on: any + command: npm test -- --reporter=json --reporter-option output=test-report.json - uses: actions/upload-artifact@v4 if: success() || failure() with: