Skip to content

Commit d4d8474

Browse files
authored
ci: Speed up playwright tests (#1357)
1 parent 05ef2f0 commit d4d8474

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
@@ -70,7 +70,7 @@ jobs:
7070
run: pnpm test:unit
7171
playwright:
7272
name: Playwright tests
73-
runs-on: macos-11
73+
runs-on: macos-14
7474
env:
7575
CI: true
7676
steps:

playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { PlaywrightTestConfig, defineConfig } from '@playwright/test';
2+
import { cpus } from 'os';
23

34
// Prevent Vite from attempting to clear the screen
45
process.stdout.isTTY = false;
@@ -12,6 +13,7 @@ const config: PlaywrightTestConfig = defineConfig({
1213
maxDiffPixelRatio: 0.02,
1314
},
1415
},
16+
workers: process.env.CI ? cpus().length : undefined,
1517
snapshotDir: 'tests/e2e/snapshots',
1618
// put all snapshots in one directory
1719
// https://playwright.dev/docs/api/class-testconfig#test-config-snapshot-path-template

0 commit comments

Comments
 (0)