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:
parent
2a03818d40
commit
aa99290664
10
Makefile
10
Makefile
@ -71,11 +71,17 @@ fmt:
|
|||||||
init:
|
init:
|
||||||
go get ./...
|
go get ./...
|
||||||
|
|
||||||
targets: $(TARGETS)
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -v ./...
|
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):
|
$(TARGETS):
|
||||||
GOOS=$@ GOARCH=amd64 CGO_ENABLED=0 go build \
|
GOOS=$@ GOARCH=amd64 CGO_ENABLED=0 go build \
|
||||||
-o "dist/$@/$(NAME)_v$(VERSION)-custom" \
|
-o "dist/$@/$(NAME)_v$(VERSION)-custom" \
|
||||||
|
Loading…
Reference in New Issue
Block a user