Skip to content

Commit 37b2704

Browse files
committed
add new ci
1 parent 7994cba commit 37b2704

29 files changed

Lines changed: 20367 additions & 153 deletions

.githooks/pre-commit

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
set -e
3+
4+
echo "Running pre-commit checks..."
5+
6+
# Format check
7+
if ! gofmt -l . | grep -q '^$'; then
8+
echo "Code needs formatting. Run: gofmt -w ."
9+
exit 1
10+
fi
11+
12+
# Lint check
13+
golangci-lint run
14+
15+
# Test check
16+
go test -short ./...
17+
18+
echo "All checks passed!"

0 commit comments

Comments
 (0)