File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 2323 run : go mod download
2424
2525 - name : Test
26- run : go test -coverprofile=coverage.txt ./...
26+ env :
27+ GOTESTSUM_JUNITFILE : junit.xml
28+ run : make
2729
2830 - name : Upload results to Codecov
2931 uses : codecov/codecov-action@v4
3032 with :
3133 token : ${{ secrets.CODECOV_TOKEN }}
34+
35+ - name : Upload test results to Codecov
36+ if : ${{ !cancelled() }}
37+ uses : codecov/test-results-action@v1
38+ with :
39+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 11coverage.txt
2+ junit.xml
Original file line number Diff line number Diff line change 1+ .PHONY : test
2+
3+ all : clean test
4+
5+ test : clean
6+ @echo " Running tests..."
7+ @go run gotest.tools/gotestsum@v1.12.0 -- -coverprofile=coverage.txt ./...
8+
9+ clean :
10+ git clean -Xdf
You can’t perform that action at this time.
0 commit comments