Skip to content

Commit 9f7c9e4

Browse files
fix(ci): build before test and disable fileParallelism to avoid flakes
1 parent 37e4031 commit 9f7c9e4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
cache: 'npm'
6161

6262
- run: npm ci
63+
- run: npm run build
6364
- run: npm test
6465
env:
6566
CI: true

vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ export default defineConfig({
44
test: {
55
include: ['src/**/*.{test,spec}.ts', 'test/**/*.{test,spec}.ts'],
66
exclude: ['test/dev-e2e/**', 'test/e2e/**', 'node_modules/**', 'dist/**'],
7+
// Subprocess/snapshot suites each run `npm run build` in beforeAll; parallel
8+
// file workers can race on dist/ and produce a stale binary (exit 1 vs 5 flakes).
9+
fileParallelism: false,
710
coverage: {
811
provider: 'v8',
912
reporter: ['text', 'text-summary', 'json-summary', 'html'],

0 commit comments

Comments
 (0)