Skip to content

Commit

Permalink
tell github actions to use 100% of available cores
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Sep 7, 2023
1 parent 044c122 commit 85b2daa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ import { devices } from '@playwright/test'
const config: PlaywrightTestConfig = {
testDir: './app/test/e2e',
testMatch: /\.e2e\.ts/,
/* Fail the build on CI if you accidentally left test.only in the source code. */
// Fail the build on CI if you accidentally left test.only in the source code
forbidOnly: !!process.env.CI,
/* Retry on CI only */
// Retry on CI only
retries: process.env.CI ? 2 : 0,
// use all available cores (2) on github actions. default is 50%, use that locally
workers: process.env.CI ? '100%' : undefined,
timeout: 2 * 60 * 1000, // 2 minutes, surely overkill
fullyParallel: true,
use: {
Expand Down

0 comments on commit 85b2daa

Please sign in to comment.