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:
parent
9da2c34551
commit
8415b89bab
1 changed files with 7 additions and 4 deletions
11
.github/workflows/typescript_test.yml
vendored
11
.github/workflows/typescript_test.yml
vendored
|
|
@ -132,10 +132,13 @@ jobs:
|
||||||
echo "${{ secrets.ENV_VARS }}" > .env
|
echo "${{ secrets.ENV_VARS }}" > .env
|
||||||
|
|
||||||
- name: Run Playwright Tests
|
- name: Run Playwright Tests
|
||||||
run: |
|
uses: nick-fields/retry@v3
|
||||||
cd src/frontend
|
with:
|
||||||
npx playwright test --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2
|
timeout_minutes: 12
|
||||||
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
|
- name: Upload blob report to GitHub Actions Artifacts
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue