File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Go Test Report
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - uses : actions/checkout@v4
11+ - uses : actions/setup-go@v5
12+ with :
13+ go-version : 1.24
14+
15+ - name : Install gotestsum
16+ run : go install gotest.tools/gotestsum@latest
17+
18+ - name : Run tests and generate report
19+ run : |
20+ mkdir -p test-report
21+ $(go env GOPATH)/bin/gotestsum --junitfile test-report/report.xml --format standard-verbose ./...
22+
23+ - name : Upload test report
24+ uses : actions/upload-artifact@v4
25+ with :
26+ name : go-test-report
27+ path : test-report/report.xml
28+
29+ - name : Publish Test Results to GitHub UI
30+ uses : mikepenz/action-junit-report@v4
31+ with :
32+ report_paths : ' test-report/*.xml'
You can’t perform that action at this time.
0 commit comments