mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 02:15:36 +00:00
perf(ci): reduce test redundancy from 4x to 1x per release
- Remove tests from pre-commit hook (keep typecheck+lint only) - Remove build+validate from prepublishOnly/prepack (CI handles it) - Add HUSKY=0 to CI commit step to skip hooks Before: 4 test runs per release (pre-commit, CI validate, prepublishOnly, prepack) After: 1 test run (CI validate only)
This commit is contained in:
1 parent
76f358d65b
commit
d39095c7d6
3 files changed
+8
-5
No files matched your search
+4
-3
@@ -1,7 +1,8 @@
|
||||
# Run validation before commit (typecheck + lint + format + tests)
|
||||
bun run validate
|
||||
# Run quick checks before commit (typecheck + lint + format only)
|
||||
# Tests are run by CI - no need to duplicate locally
|
||||
bun run typecheck && bun run lint:fix && bun run format:check
|
||||
|
||||
# Validate UI if changes detected
|
||||
# Validate UI if changes detected (typecheck + lint only)
|
||||
if git diff --cached --name-only | grep -q "^ui/"; then
|
||||
echo "[i] UI changes detected, running ui:validate..."
|
||||
bun run ui:validate
|
||||
|
||||
Reference in new issue
Block a user