Skip to content

Commit db4474d

Browse files
committed
ci: update CI workflows for broader OS support and Go versioning
- Update golangci-lint GitHub Action to use version v8 instead of v7 - Adjust test matrix to include macos-latest and windows-latest OS options - Remove Go 1.22 from the test matrix, testing only 1.23 and 1.24 - Add platform-specific go-build cache paths for macOS and Windows runners Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent ad38a4c commit db4474d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/go.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
go-version-file: "go.mod"
3232
check-latest: true
3333
- name: Setup golangci-lint
34-
uses: golangci/golangci-lint-action@v7
34+
uses: golangci/golangci-lint-action@v8
3535
with:
3636
version: v2.0
3737
args: --verbose
@@ -44,11 +44,15 @@ jobs:
4444
test:
4545
strategy:
4646
matrix:
47-
os: [ubuntu-latest]
48-
go: [1.22, 1.23, 1.24]
47+
os: [ubuntu-latest, macos-latest, windows-latest]
48+
go: [1.23, 1.24]
4949
include:
5050
- os: ubuntu-latest
5151
go-build: ~/.cache/go-build
52+
- os: macos-latest
53+
go-build: ~/Library/Caches/go-build
54+
- os: windows-latest
55+
go-build: C:\Users\runneradmin\AppData\Local\go-build
5256
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
5357
runs-on: ${{ matrix.os }}
5458
env:

0 commit comments

Comments
 (0)