Add junit results to e2e tests too

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-26 11:53:59 +04:00
parent e1989e002f
commit 0c73e28a31
2 changed files with 16 additions and 9 deletions

View File

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

View File

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