Skip to content

Commit

Permalink
restrict max-failtures
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Oct 28, 2024
1 parent f584870 commit 3c2fddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
echo "Enabled Debug Mode"
export DEBUG=true
fi
pnpm test -- --project=${{ matrix.project }} --max-failures=5
pnpm test -- --project=${{ matrix.project }} --max-failures=2
- name: Upload Test Results
if: always() && steps.test.conclusion != 'skipped'
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineConfig<GlobalOptions>({
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
maxFailures: process.env.CI ? 8 : undefined,
maxFailures: process.env.CI ? 3 : undefined,
/* Retry on CI only */
retries: process.env.CI ? 5 : 0,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
Expand Down

0 comments on commit 3c2fddc

Please sign in to comment.