Skip to content

Commit 54858b4

Browse files
committed
chore(husky): gate hooks on qa all
1 parent ede1382 commit 54858b4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.husky/pre-commit

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44

55
# Auto-fix linting and formatting
66
echo "🔧 Auto-fixing code quality issues..."
7-
cd .cursor && task qa:fix
7+
(cd .cursor && task qa:fix) || exit 1
8+
9+
# Run the full QA suite (linting, testing, etc.)
10+
echo "🛠️ Running comprehensive QA checks..."
11+
(cd .cursor && task qa:all) || exit 1
812

913
# Validate founder rules
1014
echo "📋 Validating founder rules..."
11-
cd .cursor && task qa:rules:check
15+
(cd .cursor && task qa:rules:check) || exit 1
1216

1317
# Cursor docs validation (informational, won't block commit)
14-
cd .. && node automation/scripts/validate-cursor-docs.mjs || echo "⚠️ Cursor docs validation failed (non-blocking)"
18+
node automation/scripts/validate-cursor-docs.mjs || echo "⚠️ Cursor docs validation failed (non-blocking)"
19+
1520

.husky/pre-push

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/sh
22
# Husky pre-push hook
33
# 1. Cleanup root documentation (vibe_manager_vibe responsibility)
4-
# 2. Run smoke tests
5-
# 3. Run E2E tests
4+
# 2. Run auto-fix and comprehensive QA suite
65

76
echo "🧹 Vibe Manager: Cleaning up root documentation..."
87
echo ""
@@ -11,18 +10,14 @@ echo ""
1110
node automation/scripts/cleanup-root-docs.mjs || echo "⚠️ Cleanup had warnings (non-blocking)"
1211

1312
echo ""
14-
echo "🧪 Running smoke tests before push (bun run qa:smoke)..."
13+
echo "🔧 Auto-fixing code quality issues before push..."
1514
echo ""
16-
17-
# Single entry point ensures Turborepo + Taskfile stay in sync
18-
bun run qa:smoke || exit 1
15+
(cd .cursor && task qa:fix) || exit 1
1916

2017
echo ""
21-
echo "🎭 Running E2E tests before push (bun run test:e2e:ci)..."
18+
echo "🛠️ Running comprehensive QA checks before push..."
2219
echo ""
23-
24-
# Run E2E tests in headless CI mode
25-
bun run test:e2e:ci || exit 1
20+
(cd .cursor && task qa:all) || exit 1
2621

2722
echo ""
2823
echo "✅ All checks passed - proceeding with push"

0 commit comments

Comments
 (0)