2025-05-15 16:50:59 +05:30
|
|
|
pre-push:
|
|
|
|
|
parallel: true
|
|
|
|
|
commands:
|
|
|
|
|
test:
|
|
|
|
|
run: go test -v ./...
|
|
|
|
|
|
|
|
|
|
pre-commit:
|
|
|
|
|
parallel: true
|
|
|
|
|
commands:
|
|
|
|
|
linter:
|
2026-03-11 14:40:27 +05:30
|
|
|
run: golangci-lint run -n
|
2025-05-15 16:50:59 +05:30
|
|
|
secrets-scanning:
|
|
|
|
|
files: git diff --name-only --diff-filter=d --staged
|
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lefthook.yml
|
|
|
|
|
run: 'if command -v gitleaks > /dev/null 2>&1; then gitleaks protect --no-banner --staged --redact --verbose; else echo "WARNING: gitleaks is not installed. Please install it. See https://github.com/gitleaks/gitleaks#installing"; fi'
|