Skip to content

Commit c239f1f

Browse files
authored
test, ci: Playwright config tweaks, update action versions (#1401)
1 parent ea55b4f commit c239f1f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: pnpm/action-setup@v3
2121

2222
- name: Set up Node.js
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node }}
2626
node-version-file: ${{ matrix.node == '' && '.nvmrc' || '' }}

playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const config: PlaywrightTestConfig = defineConfig({
1414
},
1515
},
1616
workers: process.env.CI ? cpus().length : undefined,
17+
retries: process.env.CI ? 2 : 0,
18+
forbidOnly: !!process.env.CI,
1719
snapshotDir: 'tests/e2e/snapshots',
1820
// put all snapshots in one directory
1921
// https://playwright.dev/docs/api/class-testconfig#test-config-snapshot-path-template

0 commit comments

Comments
 (0)