M1/#292: add Makefile with sqlc generate + test/lint/build
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user