diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 668d3fb..c514e4e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,12 @@ format: script: - make check/fmt +vet: + extends: .go_template + stage: test + script: + - make vet + test: extends: .go_template stage: test diff --git a/Makefile b/Makefile index e1854b8..4421341 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,11 @@ update: test: download go test ./... -v -race +# Look for "suspicious constructs" in source code +.PHONY: vet +vet: download + go vet ./... + # Format code .PHONY: fmt fmt: download