Skip to content

Commit 5ce6daf

Browse files
committed
ci: 更新Go版本至1.25并固定golangci-lint版本
将CI工作流中的Go版本从1.21升级到1.25,同时将golangci-lint的版本固定为v1.61.0以确保构建一致性
1 parent 88a7a68 commit 5ce6daf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Set up Go
3535
uses: actions/setup-go@v4
3636
with:
37-
go-version: '1.21'
37+
go-version: '1.25'
3838

3939
- name: Cache Go modules
4040
uses: actions/cache@v3
@@ -64,7 +64,7 @@ jobs:
6464
- name: Lint
6565
uses: golangci/golangci-lint-action@v3
6666
with:
67-
version: latest
67+
version: v1.61.0
6868
args: --timeout=5m
6969

7070
- name: Test
@@ -96,7 +96,7 @@ jobs:
9696
- name: Set up Go
9797
uses: actions/setup-go@v4
9898
with:
99-
go-version: '1.21'
99+
go-version: '1.25'
100100

101101
- name: Build
102102
run: |
@@ -180,7 +180,7 @@ jobs:
180180
- name: Set up Go
181181
uses: actions/setup-go@v4
182182
with:
183-
go-version: '1.21'
183+
go-version: '1.25'
184184

185185
- name: Run GoReleaser
186186
uses: goreleaser/goreleaser-action@v4

0 commit comments

Comments
 (0)