From daa45cfac4303f30c05e49f0c62443858cac0be7 Mon Sep 17 00:00:00 2001 From: Miccah Date: Wed, 14 Aug 2024 14:02:25 -0700 Subject: [PATCH] [chore] Ignore analyzer implementation tests in test-community (#3219) Many analyzer tests require GCP credentials, which the community does not have access to. It's best to ignore these tests, which would otherwise immediately fail for unrelated community contributions. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 58889089e..4f38b92d0 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ test-detectors: CGO_ENABLED=0 go test -tags=detectors -timeout=5m $(shell go list ./... | grep pkg/detectors) test-community: - CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/ | grep -v pkg/detectors | grep -v pkg/sources) + CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/ | grep -v pkg/detectors | grep -v pkg/sources | grep -v pkg/analyzer/analyzers) bench: CGO_ENABLED=0 go test $(shell go list ./pkg/secrets/... | grep -v /vendor/) -benchmem -run=xxx -bench .