Skip to content

Commit d3d33d6

Browse files
Retry failing tests for CI (#1065)
1 parent 0df4975 commit d3d33d6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/test-template.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ jobs:
5555

5656
- name: Run tests
5757
run: npm run test:ci -- --coverage.include=${{ steps.npm-install.outputs.workspace_path }} ${{ steps.npm-install.outputs.workspace_path }}
58+
env:
59+
CI: true

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default defineConfig({
1111
mockReset: true,
1212
restoreMocks: true,
1313
unstubEnvs: true,
14+
retry: process.env.CI ? 3 : 0,
1415
alias: {
1516
testcontainers: path.resolve(__dirname, "packages/testcontainers/src"),
1617
},

0 commit comments

Comments
 (0)