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
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-08-09 14:06:41 -03:00 committed by GitHub
commit 8415b89bab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()