diff --git a/Makefile b/Makefile index 37dd434e3..00f78451c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ default: build +GITHUB_REPO ?= github.com/heptio/authenticator GORELEASER := $(shell command -v goreleaser 2> /dev/null) .PHONY: build test format @@ -11,7 +12,7 @@ endif $(GORELEASER) --skip-publish --rm-dist --snapshot test: - go test -v ./... + go test -v -cover -race $(GITHUB_REPO)/... format: test -z "$$(find . -path ./vendor -prune -type f -o -name '*.go' -exec gofmt -d {} + | tee /dev/stderr)" || \