From a78f6c7757c327f2561b44a548513918d571baf9 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 18 Jun 2023 11:40:32 +0100 Subject: [PATCH] ci: ensure tests pkg are not run in parallel. --- .gitlab-ci.yml | 3 ++- Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 04b79b865..51f76b4a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,7 +50,8 @@ tests: - chmod 755 /usr/bin/journalctl - mkdir -p /var/log/audit/ - touch /var/log/audit/audit.log /var/log/audit/audit.log.1 - - go test ./cmd/... ./pkg/... -v -cover -coverprofile=coverage.out + - go test ./cmd/... -v -cover -coverprofile=coverage.out + - go test ./pkg/... -v -cover -coverprofile=coverage.out - go tool cover -func=coverage.out diff --git a/Makefile b/Makefile index 5479a3df9..c0c0c744f 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,8 @@ rpm: @make local tests: - @go test ./cmd/... ./pkg/... -v -cover -coverprofile=coverage.out + @go test ./cmd/... -v -cover -coverprofile=coverage.out + @go test ./pkg/... -v -cover -coverprofile=coverage.out @go tool cover -func=coverage.out lint: