fix(testkit): macOS compat + fix test 8c ordering (#24)
This commit is contained in:
18
.githooks/pre-commit
Executable file
18
.githooks/pre-commit
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Pre-commit hook: typecheck + lint
|
||||
# Activated by: make install
|
||||
set -euo pipefail
|
||||
|
||||
echo "[pre-commit] Running typecheck…"
|
||||
if ! pnpm run typecheck; then
|
||||
echo "[pre-commit] FAILED: typecheck errors — commit blocked." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[pre-commit] Running lint…"
|
||||
if ! pnpm run lint; then
|
||||
echo "[pre-commit] FAILED: lint errors — commit blocked." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[pre-commit] All checks passed."
|
||||
18
.githooks/pre-push
Executable file
18
.githooks/pre-push
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Pre-push hook: typecheck + lint (same as pre-commit, catches anything that slipped through)
|
||||
# Activated by: make install
|
||||
set -euo pipefail
|
||||
|
||||
echo "[pre-push] Running typecheck…"
|
||||
if ! pnpm run typecheck; then
|
||||
echo "[pre-push] FAILED: typecheck errors — push blocked." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[pre-push] Running lint…"
|
||||
if ! pnpm run lint; then
|
||||
echo "[pre-push] FAILED: lint errors — push blocked." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[pre-push] All checks passed."
|
||||
Reference in New Issue
Block a user