ci: optimize build pipeline to eliminate redundant builds

- validate now uses test:all directly (build already done)
- Added test:ci script for explicit CI usage
- ci.yml now builds UI deps and uses build:all
- dev-release.yml separates build and validate steps
- Reduces build count from 3-4 to 1 per release cycle
This commit is contained in:
kaitranntt committed 2025-12-09 17:47:33 -05:00
1 parent 70d54b9fe1
commit 8095a4bc07
3 files changed
+11 -7

No files matched your search

+4 -2
View File
@@ -23,10 +23,12 @@ jobs:
node-version: '22'
- name: Install dependencies
run: bun install --frozen-lockfile
run: |
bun install --frozen-lockfile
cd ui && bun install --frozen-lockfile
- name: Build package
run: bun run build
run: bun run build:all
- name: Validate (typecheck + lint + tests)
run: bun run validate
+5 -4
View File
@@ -36,10 +36,11 @@ jobs:
bun install --frozen-lockfile
cd ui && bun install --frozen-lockfile
- name: Build and validate
run: |
bun run build:all
bun run validate
- name: Build
run: bun run build:all
- name: Validate (typecheck + lint + tests)
run: bun run validate
- name: Bump dev version
id: bump
+2 -1
View File
@@ -62,9 +62,10 @@
"lint:fix": "eslint src/ --fix",
"format": "prettier --write src/",
"format:check": "prettier --check src/",
"validate": "bun run typecheck && bun run lint:fix && bun run format:check && bun run test",
"validate": "bun run typecheck && bun run lint:fix && bun run format:check && bun run test:all",
"verify:bundle": "node scripts/verify-bundle.js",
"test": "bun run build && bun run test:all",
"test:ci": "bun run test:all",
"test:all": "bun test",
"test:unit": "bun test tests/unit/",
"test:npm": "bun test tests/npm/",