Skip to content

Commit c55540e

Browse files
author
Mike Valeriano
committed
ci: setup bail for vitest in lint-staged and ci
1 parent 5e652dc commit c55540e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: ">=23.6.0"
18+
node-version: ">= 24"
1919
cache: "npm"
2020
- run: npm ci
2121
- run: |
2222
npm run typecheck
2323
npm run biome-check
24-
npm run test
24+
npm run test -- --bail=1

lint-staged.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Configuration } from "lint-staged";
22

33
export default {
4-
"*.{ts,tsx}": ["tsc-files", "biome check --no-errors-on-unmatched", "vitest related"],
4+
"*.{ts,tsx}": ["tsc-files", "biome check --no-errors-on-unmatched", "vitest related --bail=1"],
55
"*.{json,jsonc}": ["biome check --no-errors-on-unmatched"],
66
} satisfies Configuration;

0 commit comments

Comments
 (0)