From 84f6424ac95f66a633d314f06eb4b5ea432d6be3 Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Mon, 12 Sep 2022 14:34:07 +0200 Subject: [PATCH] Add vulncheck to the test steps Signed-off-by: Cosmin Cojocar --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5dbfd77..52467b0 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,10 @@ install-test-deps: $(GO_NOMOD) get -u golang.org/x/crypto/ssh $(GO_NOMOD) get -u github.com/lib/pq -test: install-test-deps build fmt lint sec +install-govulncheck: + go install golang.org/x/vuln/cmd/govulncheck@latest + +test: install-test-deps build fmt lint sec govulncheck $(GINKGO) -v --fail-fast fmt: @@ -45,6 +48,10 @@ sec: @echo "SECURITY SCANNING" ./$(BIN) ./... +govulncheck: install-govulncheck + @echo "CHECKING VULNERABILITIES" + govulncheck ./... + test-coverage: install-test-deps go test -race -v -count=1 -coverprofile=coverage.out ./...