Test the Makefile build recipe, not a copy of it
This commit is contained in:
@@ -16,8 +16,10 @@ all: build
|
||||
build:
|
||||
CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) go build $(GOFLAGS) -o $(DIST)/$(BINARY) $(PKG)
|
||||
|
||||
# -count=1: the tests build via `make build`, and the Makefile is not a go test
|
||||
# cache input, so a cached PASS would outlive a broken build recipe.
|
||||
test:
|
||||
go test -v ./...
|
||||
go test -race -count=1 -v ./...
|
||||
|
||||
lint:
|
||||
golangci-lint run ./...
|
||||
|
||||
Reference in New Issue
Block a user