szabadpalya/.githooks/pre-push

19 lines
541 B
Bash
Executable File

#!/usr/bin/env bash
# Fast static checks before anything leaves the machine.
#
# Enabled with: git config core.hooksPath .githooks
# Skip once: git push --no-verify
#
# The container smoke test is deliberately not here — it takes about a minute.
# Run the whole pipeline yourself with: scripts/ci.sh
set -euo pipefail
cd "$(dirname "$0")/.."
if [ ! -d web/node_modules ]; then
echo "pre-push: web/node_modules missing, skipping checks"
exit 0
fi
echo "pre-push: running fast checks (skip with --no-verify)"
scripts/ci.sh --fast