Skip to content

Commit

Permalink
refactor: 💡 update go version to 1.20 (#825)
Browse files Browse the repository at this point in the history
* refactor: 💡 update go version to 1.20
  • Loading branch information
sunny0826 authored Dec 27, 2023
1 parent 933e097 commit 5fd868f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

env:
# Common versions
GO_VERSION: '1.19'
GO_VERSION: '1.20'

jobs:
kind:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ 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
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: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ permissions:
# packages: write
# issues: write

env:
# Common versions
GO_VERSION: '1.20'

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -24,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5fd868f

Please sign in to comment.