Skip to content

Commit d99a1ac

Browse files
committed
Standardize CI script names and configuration
1 parent a64770b commit d99a1ac

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ jobs:
2121
with:
2222
coverage-script: 'pnpm run test:unit:coverage'
2323
coverage-report-script: 'pnpm run coverage:percent --json'
24-
test-setup-script: 'pnpm run test:prepare'
24+
fail-fast: false
25+
lint-script: 'pnpm run lint-ci'
26+
node-versions: '[20, 22, 24]'
27+
os-versions: '["ubuntu-latest", "windows-latest"]'
28+
test-script: 'pnpm run test-ci'
29+
test-setup-script: 'pnpm run build'
30+
type-check-script: 'pnpm run type-ci'
31+
type-check-setup-script: 'pnpm run build'

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"sideEffects": false,
3131
"scripts": {
3232
"check": "run-p -c --aggregate-output check:*",
33-
"check-ci": "pnpm run check:lint",
33+
"lint-ci": "pnpm run check:lint",
3434
"check:lint": "eslint --report-unused-disable-directives .",
3535
"check:lint:fix": "pnpm run check:lint --fix",
3636
"build": "pnpm run clean:dist && tsgo --build",
@@ -62,7 +62,8 @@
6262
"test:unit": "dotenvx -q run -f .env.test -- vitest --run",
6363
"test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
6464
"test:unit:update": "dotenvx -q run -f .env.test -- vitest --run --update",
65-
"test-ci": "pnpm test",
65+
"test-ci": "dotenvx -q run -f .env.test -- vitest --run",
66+
"type-ci": "pnpm run check:tsc",
6667
"test-pre-commit": "dotenvx -q run -f .env.precommit -- pnpm test",
6768
"update": "run-p --aggregate-output update:* && run-s update:longtask:**",
6869
"update:deps": "node scripts/taze.mjs",

0 commit comments

Comments
 (0)