summaryrefslogtreecommitdiff
path: root/check-ci.sh
diff options
context:
space:
mode:
Diffstat (limited to 'check-ci.sh')
-rwxr-xr-xcheck-ci.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/check-ci.sh b/check-ci.sh
index 41d3616..2baee8a 100755
--- a/check-ci.sh
+++ b/check-ci.sh
@@ -1,6 +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"