Use gotestsum in Lefthook when possible

This commit is contained in:
DarthSim
2025-03-23 18:55:18 +03:00
parent b4aaf420bc
commit bd548e00e8

View File

@@ -10,4 +10,8 @@ fi
export CGO_LDFLAGS_ALLOW="-s|-w"
export CGO_CFLAGS_ALLOW="-Xpreprocessor"
go test ./...
if [ -x "$(which gotestsum)" ]; then
gotestsum ./...
else
go test -v ./...
fi