Skip to content

Commit

Permalink
ci: retry firefox playwright integ tests on fail as they seem to be a…
Browse files Browse the repository at this point in the history
… bit flakey
  • Loading branch information
abose committed Oct 3, 2023
1 parent 4d84d6e commit 6368e2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/playwright-firefox-integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ jobs:
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright integration tests in firefox
- name: Run Playwright integration tests in firefox Attempt 1
timeout-minutes: 30
id: attempt1
continue-on-error: true
run: npm run testIntegFirefox

- name: Run Playwright integration tests in firefox Attempt 2
if: steps.attempt1.outcome == 'failure'
id: attempt2
continue-on-error: true
run: npm run testIntegFirefox

- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const config = {
/* Retry on CI only */
retries: 0, // no retries as it only makes it worse in GitHub Actions. see history.
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
workers: 1,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "list",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
Expand Down

0 comments on commit 6368e2e

Please sign in to comment.