diff --git a/Makefile b/Makefile index 65f2212..b39fe99 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,13 @@ GOBIN=$(shell pwd)/bin install-lint: - @curl -sSfL -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.42.0 + @if [ ! -f "$(GOBIN)/golangci-lint" ]; then \ + curl -sSfL -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.42.0; \ + fi lint: install-lint @echo "golangci-lint run ../..." @$(GOBIN)/golangci-lint run ./... + +test: + go test -race -failfast ./...