From 8dd064616a7778818c6b4fa249da250186e16b76 Mon Sep 17 00:00:00 2001 From: bvandeusen Date: Sun, 19 Apr 2026 02:31:06 +0000 Subject: [PATCH] M1/#292: add Makefile with sqlc generate + test/lint/build --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..42b1ad57 --- /dev/null +++ b/Makefile @@ -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