File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ on: [ push, pull_request ]
44jobs :
55 test :
66 strategy :
7+ fail-fast : false
78 matrix :
89 go : [
910 ' 1.24' ,
@@ -22,15 +23,42 @@ jobs:
2223 steps :
2324 - name : Checkout
2425 uses : actions/checkout@v4
26+
2527 - name : Install Go ${{ matrix.go }}
2628 uses : actions/setup-go@v5
2729 with :
2830 go-version : ${{ matrix.go }}
2931 check-latest : true
3032 cache-dependency-path : " **/*.sum"
33+
34+ - name : Install test tooling
35+ shell : bash
36+ run : |
37+ go install gotest.tools/gotestsum@v1.12.2
38+
3139 - name : Test
32- run : go test -v -race -coverprofile="coverage.txt" -covermode=atomic $(go list -m | grep -v examples)
33- - name : Upload code coverage
40+ shell : bash
41+ run : gotestsum --format github-actions --junitfile junit.xml -- -v -coverpkg=./... -coverprofile=coverage.txt -covermode atomic -race $(go list -m | grep -v examples)
42+
43+ - name : Publish Test Results
44+ uses : EnricoMi/publish-unit-test-result-action/linux@v2
45+ if : runner.os == 'Linux'
46+ with :
47+ files : junit.xml
48+
49+ - name : Publish Test Results
50+ uses : EnricoMi/publish-unit-test-result-action/macos@v2
51+ if : runner.os == 'macOS'
52+ with :
53+ files : junit.xml
54+
55+ - name : Publish Test Results
56+ uses : EnricoMi/publish-unit-test-result-action/windows/bash@v2
57+ if : runner.os == 'Windows'
58+ with :
59+ files : junit.xml
60+
61+ - name : Upload code coverage to Codecov
3462 uses : codecov/codecov-action@v5
3563 if : matrix.go == '1.24'
3664 with :
You can’t perform that action at this time.
0 commit comments