From f32b7d60f79e38c2dbc4167457d4325efefe66ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Mon, 26 Jan 2026 12:02:46 +0400 Subject: [PATCH] Always upload test results + fix cgo enabling for tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- .github/workflows/make.yaml | 2 ++ GNUmakefile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/make.yaml b/.github/workflows/make.yaml index c7a891407..7560fe419 100644 --- a/.github/workflows/make.yaml +++ b/.github/workflows/make.yaml @@ -136,6 +136,7 @@ jobs: GOTESTSUM_JUNITFILE: "junit.xml" - name: "Upload test results" uses: "actions/upload-artifact@v4" + if: "always()" with: name: "junit-results" path: "junit.xml" @@ -206,6 +207,7 @@ jobs: GOTESTSUM_JUNITFILE: "junit.xml" - name: "Upload test results" uses: "actions/upload-artifact@v4" + if: "always()" with: name: "junit-results" path: "junit.xml" diff --git a/GNUmakefile b/GNUmakefile index 2f2cecc53..8e81fcd49 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -79,10 +79,11 @@ test-bench: TEST_FLAGS+=-bench=. test-bench: test ## Run benchmark tests .PHONY: test-e2e +test-e2e: CGO_ENABLED=1 test-e2e: bin/probod ## Run console e2e tests PROBO_E2E_BINARY=$(CURDIR)/bin/probod \ PROBO_E2E_CONFIG=$(E2E_CONFIG) \ - CGO_ENABLED=1 GOTESTSUM_FORMAT=testname $(GO_TEST) -count=1 ./e2e/console/... + GOTESTSUM_FORMAT=testname $(GO_TEST) -count=1 ./e2e/console/... bin/probod-coverage: CGO_ENABLED=0 $(GO_BUILD) -cover -o $@ $(PROBOD_SRC)