Add gotestsum as a tool and use junit format to get test analysis

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-26 11:34:05 +04:00
parent defb566287
commit e1989e002f
4 changed files with 29 additions and 1 deletions

View File

@@ -132,6 +132,8 @@ jobs:
- run: "npm ci"
- run: "make build"
- run: "make test"
env:
GOTESTSUM_JUNITFILE: junit.xml
- run: "make coverage-report"
- uses: "actions/upload-artifact@v4"
with:
@@ -140,6 +142,13 @@ 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: