Skip to content

Commit db10369

Browse files
committed
ci: fixed codecov upload
Fixed broken test coverage upload to codecov with codecov-action@v5. * fixed tokenless upload (now supported with codecov v5) * fixed flags for codecov * fixed coverage for windows (now use bash instead of powershell) Signed-off-by: Frederic BIDON <[email protected]>
1 parent 12589f2 commit db10369

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/go-test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ jobs:
3737
go_version: ['oldstable', 'stable' ]
3838

3939
steps:
40-
- name: Run unit tests
41-
uses: actions/setup-go@v5
40+
- uses: actions/setup-go@v5
4241
with:
4342
go-version: '${{ matrix.go_version }}'
4443
check-latest: true
4544
cache: true
4645

4746
- uses: actions/checkout@v4
48-
49-
- run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic -coverpkg=$(go list)/... ./...
47+
- name: Run unit tests
48+
shell: bash
49+
run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic -coverpkg=$(go list)/... ./...
5050

5151
- name: Upload coverage to codecov
5252
uses: codecov/codecov-action@v5
5353
with:
5454
files: './coverage-${{ matrix.os }}.${{ matrix.go_version }}.out'
55-
flags: '${{ matrix.go_version }},${{ matrix.os }}'
55+
flags: '${{ matrix.go_version }}-${{ matrix.os }}'
5656
fail_ci_if_error: false
5757
verbose: true

0 commit comments

Comments
 (0)