woodpecker/vendor/github.com/kyoh86/exportloopref/Makefile
Lukas c28f7cb29f
Add golangci-lint (#502)
Initial part of #435
2021-11-14 21:01:54 +01:00

16 lines
286 B
Makefile

.PHONY: gen lint test install man
VERSION := `git vertag get`
COMMIT := `git rev-parse HEAD`
gen:
go generate ./...
lint: gen
golangci-lint run
test: lint
go test -v --race ./...
install: test
go install -a -ldflags "-X=main.version=$(VERSION) -X=main.commit=$(COMMIT)" ./...