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 6f6caa2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/reusable-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ jobs:
make gomod-tidy
[[ -z "$(git status --porcelain)" ]] || exit 1
- name: Run go vet
run: |
make vet
- name: Cache golangci-lint cache
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
Expand Down
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 6f6caa2

Please sign in to comment.