26 lines
637 B
Makefile
26 lines
637 B
Makefile
|
|
install:
|
|
go install mvdan.cc/gofumpt@latest
|
|
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
|
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
|
|
|
|
gen:
|
|
mkdir -p gen/migrations
|
|
go-bindata -pkg migrations -o gen/migrations/migrations.go -prefix "sql/migrations/" sql/migrations/...
|
|
|
|
fmt:
|
|
gofumpt -w .
|
|
|
|
lint:
|
|
golangci-lint run
|
|
|
|
test:
|
|
go test -timeout=30s -count=1 -cover ./...
|
|
|
|
clean:
|
|
docker compose down
|
|
sudo rm -rf /tmp/pg
|
|
docker compose up
|