From 8f7966cab305d4c1169e56df6f75d0fd89f58aac Mon Sep 17 00:00:00 2001 From: Hector Date: Thu, 22 Jun 2023 19:15:02 +0100 Subject: [PATCH] add vet command and step to pipeline --- .gitlab-ci.yml | 6 ++++++ Makefile | 5 +++++ 2 files changed, 11 insertions(+) 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