Files
jules/Makefile
T

31 lines
787 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/...
# mkdir -p gen/pb
# protoc -I proto \
# --go_out=gen/pb \
# --go_opt=paths=source_relative \
# --go-grpc_out=gen/pb \
# --go-grpc_opt=paths=source_relative \
# proto/jules.proto
fmt:
gofumpt -w .
lint:
golangci-lint run
test:
go test -timeout=30s -count=1 -cover ./...
clean:
sudo rm -rf /tmp/pg