Always upload test results + fix cgo enabling for tests

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-26 12:02:46 +04:00
parent 0c73e28a31
commit f32b7d60f7
2 changed files with 4 additions and 1 deletions

View File

@@ -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"

View File

@@ -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)