From 0c73e28a31513e906b5ae84e6e88eb0d2ee9ffb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Mon, 26 Jan 2026 11:53:59 +0400 Subject: [PATCH] Add junit results to e2e tests too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- .github/workflows/make.yaml | 23 +++++++++++++++-------- GNUmakefile | 2 +- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/make.yaml b/.github/workflows/make.yaml index 6e1e62b36..c7a891407 100644 --- a/.github/workflows/make.yaml +++ b/.github/workflows/make.yaml @@ -133,7 +133,13 @@ jobs: - run: "make build" - run: "make test" env: - GOTESTSUM_JUNITFILE: junit.xml + GOTESTSUM_JUNITFILE: "junit.xml" + - name: "Upload test results" + uses: "actions/upload-artifact@v4" + with: + name: "junit-results" + path: "junit.xml" + retention-days: 30 - run: "make coverage-report" - uses: "actions/upload-artifact@v4" with: @@ -142,13 +148,6 @@ jobs: coverage.out coverage.html retention-days: 30 - - name: Upload test results - uses: actions/upload-artifact@v4 - if: always() - with: - name: junit-results - path: junit.xml - retention-days: 30 # Trivy ignore does not work for license scanning in Github action # - uses: "aquasecurity/trivy-action@0.33.1" # with: @@ -203,3 +202,11 @@ jobs: yaml.dump(config, f, default_flow_style=False, allow_unicode=True) EOF - run: "make test-e2e" + env: + GOTESTSUM_JUNITFILE: "junit.xml" + - name: "Upload test results" + uses: "actions/upload-artifact@v4" + with: + name: "junit-results" + path: "junit.xml" + retention-days: 30 diff --git a/GNUmakefile b/GNUmakefile index ca7fc9250..2f2cecc53 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -82,7 +82,7 @@ test-bench: test ## Run benchmark tests test-e2e: bin/probod ## Run console e2e tests PROBO_E2E_BINARY=$(CURDIR)/bin/probod \ PROBO_E2E_CONFIG=$(E2E_CONFIG) \ - CGO_ENABLED=1 $(GO) test -count=1 -v ./e2e/console/... + CGO_ENABLED=1 GOTESTSUM_FORMAT=testname $(GO_TEST) -count=1 ./e2e/console/... bin/probod-coverage: CGO_ENABLED=0 $(GO_BUILD) -cover -o $@ $(PROBOD_SRC)