Skip to content

Commit b6181e4

Browse files
authored
fix: report coverage on the latest go version (#4398)
1 parent f8cdeae commit b6181e4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/ci-main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
# 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
3939
# When adding new go version to the list, make sure:
4040
# 1. Update the `LATEST_GO_VERSION` env variable.
41-
# 2. Update the `Report Coverage` action.
4241
# 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
4342
go-version: [ "1.23", "1.24", "1.25" ]
4443
goarch: [ "386", "amd64" ]
@@ -263,8 +262,8 @@ jobs:
263262

264263
- name: Report Coverage
265264
uses: codecov/codecov-action@v4
266-
# Only report coverage on the latest go version and amd64 arch
267-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.go-version == '1.23' && matrix.goarch == 'amd64' }}
265+
# Only report coverage on the latest go version
266+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.go-version == env.LATEST_GO_VERSION }}
268267
with:
269268
flags: go-${{ matrix.go-version }}-${{ matrix.goarch }}
270269
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/ci-sub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ concurrency:
3030
env:
3131
TZ: "Asia/Shanghai"
3232
# for unit testing cases of some components that only execute on the latest go version.
33-
LATEST_GO_VERSION: "1.24"
33+
LATEST_GO_VERSION: "1.25"
3434

3535
jobs:
3636
code-test:

0 commit comments

Comments
 (0)