Add vulncheck to the test steps

Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
Cosmin Cojocar 2022-09-12 14:34:07 +02:00 committed by Cosmin Cojocar
parent 180fc23b72
commit 84f6424ac9

View file

@ -22,7 +22,10 @@ install-test-deps:
$(GO_NOMOD) get -u golang.org/x/crypto/ssh $(GO_NOMOD) get -u golang.org/x/crypto/ssh
$(GO_NOMOD) get -u github.com/lib/pq $(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 $(GINKGO) -v --fail-fast
fmt: fmt:
@ -45,6 +48,10 @@ sec:
@echo "SECURITY SCANNING" @echo "SECURITY SCANNING"
./$(BIN) ./... ./$(BIN) ./...
govulncheck: install-govulncheck
@echo "CHECKING VULNERABILITIES"
govulncheck ./...
test-coverage: install-test-deps test-coverage: install-test-deps
go test -race -v -count=1 -coverprofile=coverage.out ./... go test -race -v -count=1 -coverprofile=coverage.out ./...