Skip to content

Commit b1e110d

Browse files
committed
ci: update GitHub Actions and Linting Workflow
- Update GitHub Actions to use `go-version-file` and `check-latest` for Go versioning - Upgrade `golangci-lint-action` from v3 to v4 Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 043417e commit b1e110d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/go.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ jobs:
2424
- name: Setup go
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: "^1"
27+
go-version-file: "go.mod"
28+
check-latest: true
2829
- name: Checkout repository
2930
uses: actions/checkout@v4
3031
- name: Setup golangci-lint
31-
uses: golangci/golangci-lint-action@v3
32+
uses: golangci/golangci-lint-action@v4
3233
with:
3334
version: latest
3435
args: --verbose

.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: "^1"
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)