From f2c45d7507fb9c811bb72dc964f3a790794a33e2 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 28 Apr 2024 12:23:47 +0100 Subject: [PATCH] ci: exclude paths lib from the tests. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1a51e90d..59c4e5244 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,7 +60,7 @@ tests: - mkdir -p /var/log/audit/ - touch /var/log/audit/audit.log /var/log/audit/audit.log.1 - go test ./cmd/... -v -cover -coverprofile=coverage.out - - go test ./pkg/... -v -cover -coverprofile=coverage.out + - go test $(go list ./pkg/... | grep -v /pkg/paths) -v -cover -coverprofile=coverage.out - go tool cover -func=coverage.out