Skip to content

Commit bb7e271

Browse files
authored
chore: add pnpm run ci-pipeline:fast (#441)
turns out my laptop couldn't handle the default of 4 concurrency without OOM, and it's also significantly slower than my desktop to the point where I want a partial run locally.
1 parent 84eac3b commit bb7e271

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@
2828
"test": "jest",
2929
"integration:clean": "pnpm --filter @integration/* clean",
3030
"integration:generate": "node ./scripts/generate.mjs",
31-
"integration:validate": "pnpm -r validate",
31+
"integration:validate": "pnpm -r --workspace-concurrency=2 validate",
3232
"e2e:generate": "pnpm --filter e2e clean && pnpm --filter e2e generate",
3333
"e2e:validate": "pnpm --filter e2e build && pnpm --filter e2e test",
3434
"ci-test": "jest --coverage",
3535
"ci-lint": "biome ci .",
3636
"ci-pipeline": "./scripts/ci-pipeline.sh",
37+
"ci-pipeline:fast": "FAST=1 ./scripts/ci-pipeline.sh",
3738
"publish:alpha": "./scripts/publish.alpha.sh",
3839
"publish:release": "./scripts/publish.release.sh",
3940
"prepare": "husky"

scripts/ci-pipeline.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ SCHEMA_BUILDERS=(
88
zod-v4
99
)
1010

11+
if [[ -n "$FAST" ]]; then
12+
SCHEMA_BUILDERS=(zod-v4)
13+
fi
14+
1115
pnpm run build
1216
pnpm run build:docs
1317
pnpm ci-test
@@ -21,8 +25,10 @@ for SCHEMA_BUILDER in "${SCHEMA_BUILDERS[@]}"; do
2125
pnpm integration:validate
2226
done
2327

24-
SCHEMA_BUILDER=zod-v3 pnpm e2e:generate
25-
pnpm e2e:validate
28+
if [[ -z "$FAST" ]]; then
29+
SCHEMA_BUILDER=zod-v3 pnpm e2e:generate
30+
pnpm e2e:validate
31+
fi
2632

2733
SCHEMA_BUILDER=zod-v4 pnpm e2e:generate
2834
pnpm e2e:validate

0 commit comments

Comments
 (0)