spark-server/scripts/git-hooks/pre-commit

10 lines
235 B
Bash
Executable File

#!/usr/bin/env bash
# Runs before every git commit. Install: make install-git-hooks
set -euo pipefail
ROOT="$(git rev-parse --show-toplevel)"
cd "$ROOT"
echo "pre-commit: make test (lint + go test + logic coverage)…" >&2
make test