Skip to content

Commit 82a097e

Browse files
committed
use 5 workers on CI?
1 parent 779e115 commit 82a097e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

packages/integration-tests/playwright.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import type { PlaywrightTestConfig } from '@playwright/test';
22

33
const config: PlaywrightTestConfig = {
44
retries: 0,
5+
// Run tests inside of a single file in parallel
56
fullyParallel: true,
7+
// Use 3 workers on CI, else use defaults (based on available CPU cores)
8+
workers: process.env.CI ? 5 : undefined,
69
};
710
export default config;

packages/nextjs/playwright.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ const config: PlaywrightTestConfig = {
66
use: {
77
baseURL: 'http://localhost:3000',
88
},
9+
// Run tests inside of a single file in parallel
910
fullyParallel: true,
11+
// Use 3 workers on CI, else use defaults (based on available CPU cores)
12+
workers: process.env.CI ? 5 : undefined,
1013
webServer: {
1114
cwd: path.join(__dirname, 'test', 'integration'),
1215
command: 'yarn start',

packages/remix/playwright.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ const config: PlaywrightTestConfig = {
55
use: {
66
baseURL: 'http://localhost:3000',
77
},
8+
// Run tests inside of a single file in parallel
89
fullyParallel: true,
10+
// Use 3 workers on CI, else use defaults (based on available CPU cores)
11+
workers: process.env.CI ? 5 : undefined,
912
webServer: {
1013
command: '(cd test/integration/ && yarn build && yarn start)',
1114
port: 3000,

0 commit comments

Comments
 (0)