Skip to content

Commit c920b3e

Browse files
committed
Standardize CI script names and configuration
1 parent 0f0026a commit c920b3e

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
@@ -46,7 +46,7 @@
4646
"check": "pnpm run check:lint && pnpm run check:tsc",
4747
"check:lint": "eslint --report-unused-disable-directives .",
4848
"check:tsc": "tsgo --noEmit",
49-
"check-ci": "pnpm run check:lint",
49+
"lint-ci": "pnpm run check:lint",
5050
"coverage": "run-s coverage:*",
5151
"coverage:test": "run-s test:prepare test:unit:coverage",
5252
"coverage:percent": "node scripts/get-coverage-percentage.mjs",
@@ -84,7 +84,8 @@
8484
"test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
8585
"test:validate": "node scripts/validate-tests.mjs",
8686
"test:wrapper": "node scripts/test-wrapper.mjs",
87-
"test-ci": "run-s test:*",
87+
"test-ci": "dotenvx -q run -f .env.test -- vitest run",
88+
"type-ci": "pnpm run check:tsc",
8889
"test-pre-commit": "dotenvx -q run -f .env.precommit -- pnpm test",
8990
"testu": "dotenvx -q run -f .env.test -- run-s test:prepare; pnpm run test:unit:update --",
9091
"testuf": "dotenvx -q run -f .env.test -- pnpm run test:unit:update --",

0 commit comments

Comments
 (0)