Skip to content

Commit 4bbd073

Browse files
committed
. e add test reports
1 parent 98e3c10 commit 4bbd073

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/test.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,20 @@ jobs:
3030

3131
- name: Build
3232
run: go build -v ./...
33+
34+
- name: Install gotestsum
35+
run: go install gotest.tools/gotestsum@latest
3336

3437
- name: test
35-
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
38+
run: |
39+
mkdir test-reports
40+
gotestsum --junitfile test-reports/test-results.xml ./... -race -coverprofile=coverage.txt -covermode=atomic
41+
42+
- name: Publish Test Report
43+
uses: mikepenz/action-junit-report@v5
44+
if: success() || failure() # always run even if the previous step fails
45+
with:
46+
report_paths: '**/test-reports/*.xml'
3647
auto-merge:
3748
needs: build-and-test
3849
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)