From aa9929066491765cfe421a7f3ede163b74473149 Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Sun, 30 Apr 2023 23:37:35 -0400 Subject: [PATCH] chore(make): Add `lint`, `release-build` targets (#317) --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ebcaff36..007ee4b0 100644 --- a/Makefile +++ b/Makefile @@ -71,11 +71,17 @@ fmt: init: go get ./... -targets: $(TARGETS) - test: go test -v ./... +lint: + go run -modfile=tools/go.mod github.com/golangci/golangci-lint/cmd/golangci-lint run --fix + +release-build: + go run -modfile=tools/go.mod github.com/goreleaser/goreleaser build --clean --skip-validate + +targets: $(TARGETS) + $(TARGETS): GOOS=$@ GOARCH=amd64 CGO_ENABLED=0 go build \ -o "dist/$@/$(NAME)_v$(VERSION)-custom" \