Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
build: add go vet to checks
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgacsal committed Feb 22, 2024
1 parent 16b98e2 commit 35ebc95
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ ui: ## Build UI component
##@ Testing

.PHONY: check
check: lint test ## Run tests and linters
check: vet lint test ## Run tests and linters

LINTGOMODULES = $(addprefix lint-, $(GOMODULES))
FIXGOMODULES = $(addprefix fix-, $(GOMODULES))
Expand Down Expand Up @@ -214,6 +214,14 @@ $(TESTGOMODULES):
.PHONY: test
test: $(TESTGOMODULES) ## Run Go unit tests

VETGOMODULES = $(addprefix vet-, $(GOMODULES))

$(VETGOMODULES):
go -C $(@:vet-%=%) vet ./...

.PHONY: vet
vet: $(VETGOMODULES) ## Run go vet for modules

##@ Docker

# Export params required in Docker Bake
Expand Down

0 comments on commit 35ebc95

Please sign in to comment.