From b9c49585e9d228fe4cb94d89b7ef4210a20fa6a2 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 30 Apr 2024 09:14:17 +0300 Subject: [PATCH] Add several retries for the test run before it fails --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1941df0c..1bb4fddc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,14 @@ jobs: - name: Setup configs and install deps run: ./scripts/setup.sh -u - 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: