Try adding retry action to github actions workflow

This commit is contained in:
Jon Lane 2022-10-14 16:05:00 -07:00
parent 19241fc911
commit 6196a5dd21
1 changed files with 9 additions and 5 deletions

View File

@ -37,14 +37,18 @@ jobs:
echo "::set-output name=E2E_GRAND_TOTAL::$COUNT"
- name: Run Playwright E2E tests.
timeout-minutes: 60
id: run_playwright_e2e_tests
env:
USE_WP_ENV: 1
E2E_MAX_FAILURES: 15
FORCE_COLOR: 1
USE_WP_ENV: 1
E2E_MAX_FAILURES: 15
FORCE_COLOR: 1
working-directory: plugins/woocommerce
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
uses: nick-fields/retry@v2
with:
timeout-minutes: 60
max_attempts: 2
retry_on: error
command: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
- name: Generate Playwright E2E Test report.
id: generate_e2e_report