- scripts/preflight.sh: app+server tsc, eslint, i18n, vitest; installed as .githooks/pre-push (scripts/install-hooks.sh) and run by auto-deploy before Netlify. Failures record preflight-failed and ops-health flags them. - update-deps.sh: if the blanket npm update fails, restore the lock and retry patch-level packages one at a time, keeping those that pass a fast gate; the final npm test + smoke still gates the result, otherwise revert + 3-day retry. - release.sh/deps set SKIP_PREFLIGHT=1 (they run the full npm test themselves).
9 lines
326 B
Bash
Executable file
9 lines
326 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# Install the repo's git hooks (currently the pre-push test gate).
|
|
set -euo pipefail
|
|
REPO="$(cd "$(dirname "$0")/.." && pwd)"
|
|
cd "$REPO"
|
|
git config core.hooksPath .githooks
|
|
chmod +x .githooks/pre-push scripts/preflight.sh
|
|
echo "pre-push hook installed (bypass: SKIP_PREFLIGHT=1 or git push --no-verify)"
|