Test the Makefile build recipe, not a copy of it
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

This commit is contained in:
2026-09-26 22:18:23 +10:00
parent 3e2f7e59b6
commit 6a1db8d209
2 changed files with 13 additions and 17 deletions
+3 -1
View File
@@ -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 ./...