Skip to content

Commit 62fe5cf

Browse files
authored
Update go.yml
1 parent 33f9713 commit 62fe5cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/go.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ jobs:
2828
run: go get .
2929

3030
- name: Test with Go
31-
run: go test -json ./... > TestResults-${{ matrix.go-version }}.json
31+
run: go test -v -coverprofile=coverage-${{ matrix.go-version }}.txt -covermode=atomic ./... > TestResults-${{ matrix.go-version }}.json
3232

3333
- name: Upload Go test results
3434
uses: actions/upload-artifact@v4
3535
with:
3636
name: Go-results-${{ matrix.go-version }}
3737
path: TestResults-${{ matrix.go-version }}.json
38-
38+
3939
- name: Upload coverage reports to Codecov
4040
uses: codecov/[email protected]
4141
with:
4242
token: ${{ secrets.CODECOV_TOKEN }}
43+
files: coverage-${{ matrix.go-version }}.txt

0 commit comments

Comments
 (0)