Skip to content

Commit

Permalink
chore(e2e): retry e2e tests when running in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Feb 4, 2025
1 parent 5722009 commit f0020ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ jobs:
- name: Test
id: test
run: |
pnpm test:vitest --shard=${{ matrix.shardIndex}}/${{ matrix.shardTotal }}
pnpm test:vitest --test-timeout=60000 --retry 4 --shard=${{ matrix.shardIndex}}/${{ matrix.shardTotal }}
env:
GITHUB_SHARD_IDENTIFIER: ${{ matrix.shardIndex }}-${{ matrix.shardTotal }}
1 change: 1 addition & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const playwrightConfig = createPlaywrightConfig({

return {
...config,
retries: process.env.CI ? 4 : 0,
reporter: excludeGithub(config.reporter),
use: {
...config.use,
Expand Down

0 comments on commit f0020ed

Please sign in to comment.