diff --git a/.env.sample b/.env.sample index 22bda55..b02dc44 100644 --- a/.env.sample +++ b/.env.sample @@ -33,6 +33,7 @@ SCREENSHOT_MAX_BUFFER= READABILITY_MAX_BUFFER= PREVIEW_MAX_BUFFER= IMPORT_LIMIT= +MAX_WORKERS= # AWS S3 Settings SPACES_KEY= diff --git a/playwright.config.ts b/playwright.config.ts index b90f7d7..265a274 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -15,7 +15,7 @@ export default defineConfig({ /* Retry on CI only */ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ - workers: process.env.CI ? 1 : undefined, + workers: process.env.CI ? 1 : Number(process.env.MAX_WORKERS) || undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: "html", /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */