chore(ci): adjust Playwright worker configuration for CI environment

This commit is contained in:
taroj1205 2025-06-22 18:16:37 +12:00
parent 581bfc3647
commit a6292e79ce
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7

View file

@ -17,8 +17,7 @@ export default defineConfig({
fullyParallel: true, fullyParallel: true,
forbidOnly: Boolean(process.env.CI), forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 2 : 0, retries: process.env.CI ? 2 : 0,
/* Remove worker limitation in CI for better sharding performance */ workers: process.env.CI ? 1 : undefined,
workers: process.env.CI ? '50%' : undefined,
reporter: process.env.CI ? [['github'], ['html']] : 'html', reporter: process.env.CI ? [['github'], ['html']] : 'html',
use: { use: {
baseURL: 'http://localhost:3000', baseURL: 'http://localhost:3000',