Skip to content

Commit 3ace3ab

Browse files
author
zhouhao
committed
Makefile add govet to test
Signed-off-by: zhouhao <[email protected]>
1 parent 64f77c0 commit 3ace3ab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,18 @@ lint:
5959
@echo "checking lint"
6060
@./.tool/lint
6161

62-
.PHONY: .gofmt .gotest
62+
.PHONY: .gofmt .govet .gotest
6363

6464
PACKAGES = $(shell go list ./... | grep -v /vendor/)
65-
test: .gofmt .gotest
65+
test: .gofmt .govet .gotest
6666

6767
FILES = $(shell find ./ -name *.go | grep -v vendor)
6868
.gofmt:
6969
OUT=$$(gofmt -s -d $(FILES)); if test -n "$${OUT}"; then echo "$${OUT}" && exit 1; fi
7070

71+
.govet:
72+
go vet -x $(PACKAGES)
73+
7174
.gotest:
7275
go test -v -race -cover $(PACKAGES)
7376

0 commit comments

Comments
 (0)