From 68d8748e5a7b84c859275c6fedb3320706db30ca Mon Sep 17 00:00:00 2001 From: Stefan Benz <46600784+stebenz@users.noreply.github.com> Date: Wed, 9 Jul 2025 15:02:06 +0200 Subject: [PATCH] chore: always run tests for coverage --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4fa19dbb95..dab2b211fc 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,8 @@ VERSION ?= development-$(now) COMMIT_SHA ?= $(shell git rev-parse HEAD) ZITADEL_IMAGE ?= zitadel:local -GOCOVERDIR_INTEGRATION = tmp/coverage/integration -GOCOVERDIR_UNIT = tmp/coverage/unit +GOCOVERDIR_INTEGRATION = "$(shell pwd)/tmp/coverage/integration" +GOCOVERDIR_UNIT = "$(shell pwd)/tmp/coverage/unit" ZITADEL_MASTERKEY ?= MasterkeyNeedsToHave32Characters export GOCOVERDIR_INTEGRATION GOCOVERDIR_UNIT ZITADEL_MASTERKEY @@ -120,8 +120,8 @@ clean: .PHONY: core_unit_test core_unit_test: - mkdir -p $${GOCOVERDIR_UNIT} - go test -cover -race -coverprofile=profile.cov -coverpkg=./internal/... ./... -args -test.gocoverdir="${GOCOVERDIR_UNIT}" + mkdir -p ${GOCOVERDIR_UNIT} + go test -cover -race -coverprofile=profile.cov -coverpkg=./internal/... ./... -args -test.gocoverdir=${GOCOVERDIR_UNIT} .PHONY: core_unit_reports core_unit_reports: