summaryrefslogtreecommitdiffstats
path: root/hooks/pre-commit
blob: 422b855e07c047041a3ce4c682b37b4fcddc4331 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

if [ $(git rev-parse --abbrev-ref HEAD) != "main" ]; then
	exit 0
fi

echo "Running tests before commit to main"
go test ./...