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