build: more tests in parallel

This commit is contained in:
Johannes Millan 2025-12-28 15:07:11 +01:00
parent 5cb75d153d
commit 8d32419eef

View file

@ -17,7 +17,10 @@ export default defineConfig({
retries: process.env.CI ? 2 : 1,
// Reduce worker count to avoid resource contention causing flakiness
// Lower worker count improves stability by reducing parallel execution stress
workers: process.env.CI ? Math.min(3, os.cpus().length) : Math.min(4, os.cpus().length),
workers:
(process.env.CI
? Math.min(3, os.cpus().length)
: Math.min(12, os.cpus().length - 1)) || 1,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: process.env.CI
? [