Fix lint and test target

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-07-15 10:00:38 +02:00
parent 0081d8195b
commit c507f90dba

View File

@@ -36,7 +36,7 @@ PROBOD_SRC= cmd/probod/main.go
all: build all: build
.PHONY: lint .PHONY: lint
lint: vet npm-lint lint: vet # npm-lint
.PHONY: vet .PHONY: vet
vet: vet:
@@ -47,6 +47,7 @@ npm-lint:
$(NPM) run lint $(NPM) run lint
.PHONY: test .PHONY: test
test: CGO_ENABLED=1
test: ## Run tests with race detection and coverage (usage: make test [MODULE=./pkg/some/module]) test: ## Run tests with race detection and coverage (usage: make test [MODULE=./pkg/some/module])
$(GO_TEST) $(if $(MODULE),$(MODULE),./...) $(GO_TEST) $(if $(MODULE),$(MODULE),./...)