This commit is contained in:
2026-10-03 12:18:35 +07:00
parent 2e4456cb6e
commit a8cfa96578
4 changed files with 46 additions and 64 deletions
+16 -1
View File
@@ -4,7 +4,22 @@ DEV_USER_USERNAME ?= dev
DEV_USER_EMAIL ?= dev@example.com
DEV_USER_PASSWORD ?= dev123456
.PHONY: dev-user migrate-up
.PHONY: dev-user migrate-up fmt-check vet lint check
fmt-check:
@set -e; files=$$(git ls-files -z '*.go' ':!proto/*.pb.go' | xargs -0 -r gofmt -l); if [ -n "$$files" ]; then printf '%s\n' "$$files"; exit 1; fi
vet:
go vet ./...
lint:
golangci-lint run ./...
check:
$(MAKE) fmt-check
$(MAKE) vet
$(MAKE) lint
$(MAKE) test
migrate-up:
goose -dir ./migrations postgres "$(DATABASE_URL)" up