ci: reduce retries to 1 and increase workers to 2
- Retries reduced from 2 to 1 (retries are helping with flaky remote tests but 2 is overkill) - Workers increased from 1 to 2 in CI for parallel project execution
This commit is contained in:
@@ -11,9 +11,9 @@ export default defineConfig({
|
||||
// Fail the build on CI if you accidentally left test.only in the source code.
|
||||
forbidOnly: !!process.env.CI,
|
||||
// Retry on CI only.
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
// Always run with 1 worker to avoid database conflicts
|
||||
workers: 1,
|
||||
retries: process.env.CI ? 1 : 0,
|
||||
// Use 2 workers in CI for parallel project execution; 1 locally
|
||||
workers: process.env.CI ? 2 : 1,
|
||||
// Reporter to use
|
||||
reporter: 'html',
|
||||
// Global setup and teardown
|
||||
|
||||
Reference in New Issue
Block a user