M1/#292: add Makefile with sqlc generate + test/lint/build

This commit is contained in:
2026-04-19 02:31:06 +00:00
parent d358d7e1a0
commit 8dd064616a
+18
View File
@@ -0,0 +1,18 @@
.PHONY: generate test test-short lint build
SQLC_VERSION := 1.27.0
generate:
docker run --rm -v "$(CURDIR):/src" -w /src sqlc/sqlc:$(SQLC_VERSION) generate
test:
go test -race ./...
test-short:
go test -short -race ./...
lint:
golangci-lint run ./...
build:
go build -o bin/minstrel ./cmd/minstrel