From 018644e0819e52af842c33df076ab52c8409f561 Mon Sep 17 00:00:00 2001 From: Xudong Guo Date: Wed, 27 Dec 2023 10:28:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20update=20go=20ve?= =?UTF-8?q?rsion=20to=201.20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/e2e-test.yaml | 2 +- .github/workflows/go.yaml | 4 ++-- .github/workflows/release.yaml | 2 +- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index 43e8672c..00e7bab7 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -16,7 +16,7 @@ on: env: # Common versions - GO_VERSION: '1.19' + GO_VERSION: '1.20' jobs: kind: diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 5d738efd..f3c0f807 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -22,10 +22,10 @@ jobs: name: test runs-on: ubuntu-latest steps: - - name: Set up Go 1.19 + - name: Set up Go 1.20 uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.20 id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1eaa9837..0b5fd705 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.20 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/go.mod b/go.mod index bf762920..4ed81893 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/sunny0826/kubecm -go 1.19 +go 1.20 require ( github.com/alibabacloud-go/cs-20151215/v2 v2.4.5 From 66596d9938cdeb39c83345884b28417e2a7845fa Mon Sep 17 00:00:00 2001 From: Xudong Guo Date: Wed, 27 Dec 2023 10:35:00 +0800 Subject: [PATCH 2/2] fix --- .github/workflows/go.yaml | 7 ++++++- .github/workflows/release.yaml | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index f3c0f807..e0b36446 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -17,6 +17,11 @@ permissions: contents: read # Optional: allow read access to pull request. Use with `only-new-issues` option. # pull-requests: read + +env: + # Common versions + GO_VERSION: '1.20' + jobs: test: name: test @@ -25,7 +30,7 @@ jobs: - name: Set up Go 1.20 uses: actions/setup-go@v5 with: - go-version: 1.20 + go-version: ${{ env.GO_VERSION }} id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0b5fd705..7fb69071 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,6 +11,10 @@ permissions: # packages: write # issues: write +env: + # Common versions + GO_VERSION: '1.20' + jobs: goreleaser: runs-on: ubuntu-latest @@ -24,7 +28,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.20 + go-version: ${{ env.GO_VERSION }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: