0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-11 16:25:02 +00:00

chore(make): Add lint, release-build targets (#317)

This commit is contained in:
Pavel Boldyrev 2023-04-30 23:37:35 -04:00 committed by GitHub
parent 2a03818d40
commit aa99290664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" \