Skip to content

Commit f08c1bc

Browse files
committed
ci: refactor CI workflows and improve tests
- Update GitHub Actions workflows to determine Go version from `go.mod` and check for the latest version. Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 2451987 commit f08c1bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/go.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- name: Setup go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: "stable"
20+
go-version-file: go.mod
21+
check-latest: true
2122
- name: Setup golangci-lint
2223
uses: golangci/golangci-lint-action@v3
2324
with:

.github/workflows/goreleaser.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: "stable"
22+
go-version-file: go.mod
23+
check-latest: true
2324
- name: Run GoReleaser
2425
uses: goreleaser/goreleaser-action@v5
2526
with:

0 commit comments

Comments
 (0)