mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 09:50:00 +08:00
chore: update go version for building goctl releases (#4346)
This commit is contained in:
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@@ -19,10 +19,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: zeromicro/go-zero-release-action@master
|
- uses: zeromicro/go-zero-release-action@master
|
||||||
with:
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
check-latest: true
|
||||||
|
cache: true
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
goversion: "https://dl.google.com/go/go1.19.13.linux-amd64.tar.gz"
|
|
||||||
project_path: "tools/goctl"
|
project_path: "tools/goctl"
|
||||||
binary_name: "goctl"
|
binary_name: "goctl"
|
||||||
extra_files: tools/goctl/readme.md tools/goctl/readme-cn.md
|
extra_files: tools/goctl/readme.md tools/goctl/readme-cn.md
|
||||||
@@ -81,13 +81,13 @@ func Test_getRealModule(t *testing.T) {
|
|||||||
"Path":"foo",
|
"Path":"foo",
|
||||||
"Dir":"/home/foo",
|
"Dir":"/home/foo",
|
||||||
"GoMod":"/home/foo/go.mod",
|
"GoMod":"/home/foo/go.mod",
|
||||||
"GoVersion":"go1.19"
|
"GoVersion":"go1.20"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"Path":"bar",
|
"Path":"bar",
|
||||||
"Dir":"/home/bar",
|
"Dir":"/home/bar",
|
||||||
"GoMod":"/home/bar/go.mod",
|
"GoMod":"/home/bar/go.mod",
|
||||||
"GoVersion":"go1.19"
|
"GoVersion":"go1.20"
|
||||||
}`, nil
|
}`, nil
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -95,7 +95,7 @@ func Test_getRealModule(t *testing.T) {
|
|||||||
Path: "bar",
|
Path: "bar",
|
||||||
Dir: "/home/bar",
|
Dir: "/home/bar",
|
||||||
GoMod: "/home/bar/go.mod",
|
GoMod: "/home/bar/go.mod",
|
||||||
GoVersion: "go1.19",
|
GoVersion: "go1.20",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -143,26 +143,26 @@ func TestDecodePackages(t *testing.T) {
|
|||||||
"Path":"foo",
|
"Path":"foo",
|
||||||
"Dir":"/home/foo",
|
"Dir":"/home/foo",
|
||||||
"GoMod":"/home/foo/go.mod",
|
"GoMod":"/home/foo/go.mod",
|
||||||
"GoVersion":"go1.19"
|
"GoVersion":"go1.20"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"Path":"bar",
|
"Path":"bar",
|
||||||
"Dir":"/home/bar",
|
"Dir":"/home/bar",
|
||||||
"GoMod":"/home/bar/go.mod",
|
"GoMod":"/home/bar/go.mod",
|
||||||
"GoVersion":"go1.19"
|
"GoVersion":"go1.20"
|
||||||
}`),
|
}`),
|
||||||
want: []Module{
|
want: []Module{
|
||||||
{
|
{
|
||||||
Path: "foo",
|
Path: "foo",
|
||||||
Dir: "/home/foo",
|
Dir: "/home/foo",
|
||||||
GoMod: "/home/foo/go.mod",
|
GoMod: "/home/foo/go.mod",
|
||||||
GoVersion: "go1.19",
|
GoVersion: "go1.20",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Path: "bar",
|
Path: "bar",
|
||||||
Dir: "/home/bar",
|
Dir: "/home/bar",
|
||||||
GoMod: "/home/bar/go.mod",
|
GoMod: "/home/bar/go.mod",
|
||||||
GoVersion: "go1.19",
|
GoVersion: "go1.20",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -173,14 +173,14 @@ func TestDecodePackages(t *testing.T) {
|
|||||||
"Path":"foo",
|
"Path":"foo",
|
||||||
"Dir":"/home/foo",
|
"Dir":"/home/foo",
|
||||||
"GoMod":"/home/foo/go.mod",
|
"GoMod":"/home/foo/go.mod",
|
||||||
"GoVersion":"go1.19"
|
"GoVersion":"go1.20"
|
||||||
}`),
|
}`),
|
||||||
want: []Module{
|
want: []Module{
|
||||||
{
|
{
|
||||||
Path: "foo",
|
Path: "foo",
|
||||||
Dir: "/home/foo",
|
Dir: "/home/foo",
|
||||||
GoMod: "/home/foo/go.mod",
|
GoMod: "/home/foo/go.mod",
|
||||||
GoVersion: "go1.19",
|
GoVersion: "go1.20",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user