diff options
Diffstat (limited to 'tools/check-ci.sh')
| -rwxr-xr-x | tools/check-ci.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/check-ci.sh b/tools/check-ci.sh new file mode 100755 index 0000000..2baee8a --- /dev/null +++ b/tools/check-ci.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e + +trap 'echo "❌ Check failed"; exit 1' ERR + +test -z "$(go fmt ./...)" +staticcheck ./... +go test --cover ./... +gosec ./... + +echo "✅ All checks passed" |
