Skip to content

Commit

Permalink
test, ci: Playwright config tweaks, update action versions (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis committed Apr 29, 2024
1 parent ea55b4f commit c239f1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: pnpm/action-setup@v3

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version-file: ${{ matrix.node == '' && '.nvmrc' || '' }}
Expand Down
2 changes: 2 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const config: PlaywrightTestConfig = defineConfig({
},
},
workers: process.env.CI ? cpus().length : undefined,
retries: process.env.CI ? 2 : 0,
forbidOnly: !!process.env.CI,
snapshotDir: 'tests/e2e/snapshots',
// put all snapshots in one directory
// https://playwright.dev/docs/api/class-testconfig#test-config-snapshot-path-template
Expand Down

0 comments on commit c239f1f

Please sign in to comment.