File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 test :
88 strategy :
99 matrix :
10- go : [ '1.22.x' ]
1110 os : [ ubuntu-latest ]
1211 runs-on : ${{ matrix.os }}
1312 steps :
1615 - name : Setup Go
1716 uses : actions/setup-go@v6
1817 with :
19- go-version : ${{ matrix.go }}
18+ go-version-file : go.mod
19+ check-latest : true
2020 - name : Test
2121 # 移除 -coverprofile 参数以避免在某些 Go 版本/环境中触发 `go tool covdata` 错误
2222 run : go test ./...
Original file line number Diff line number Diff line change 2020 - name : Set up Go
2121 uses : actions/setup-go@v6
2222 with :
23- go-version : ' stable'
23+ go-version-file : go.mod
24+ check-latest : true
2425
2526 - name : Build and Test on Default Platform
2627 run : |
4950 - name : Set up Go
5051 uses : actions/setup-go@v6
5152 with :
52- go-version : ' stable'
53+ go-version-file : go.mod
54+ check-latest : true
5355
5456 - name : Build and Release
5557 run : |
You can’t perform that action at this time.
0 commit comments