From 8415b89babdf360fbfdfeb20956b7fecda8ea275 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 9 Aug 2024 14:06:41 -0300 Subject: [PATCH] ci: integrate retry mechanism in Playwright tests to improve stability and handle potential failures (#3267) fix: integrate retry mechanism in Playwright tests to improve stability and handle potential failures --- .github/workflows/typescript_test.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/typescript_test.yml b/.github/workflows/typescript_test.yml index 901662c73..40ceb5119 100644 --- a/.github/workflows/typescript_test.yml +++ b/.github/workflows/typescript_test.yml @@ -132,10 +132,13 @@ jobs: echo "${{ secrets.ENV_VARS }}" > .env - name: Run Playwright Tests - run: | - cd src/frontend - npx playwright test --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2 - timeout-minutes: 12 + uses: nick-fields/retry@v3 + with: + timeout_minutes: 12 + max_attempts: 2 + command: | + cd src/frontend + npx playwright test --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2 - name: Upload blob report to GitHub Actions Artifacts if: always()