Skip to content

Commit

Permalink
Serial CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Aug 9, 2024
1 parent e37dc6f commit faae158
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig, devices } from '@playwright/test';

const webServer = false;
const webServer = !!process.env.CI;

/**
* See https://playwright.dev/docs/test-configuration.
Expand All @@ -13,6 +13,7 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
use: {
baseURL: webServer ? 'http://127.0.0.1:4173' : 'https://maskable.app/',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
Expand Down

0 comments on commit faae158

Please sign in to comment.