Update Go version from 1.15 to 1.16

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
This commit is contained in:
RainbowMango 2021-08-07 12:42:44 +08:00
parent b0c6c2253c
commit 05c9f91897
4 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
- name: lint
run: hack/verify-staticcheck.sh
codegen:
@ -26,7 +26,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
- name: verify codegen
run: hack/verify-codegen.sh
- name: verify crdgen
@ -45,7 +45,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
- name: compile
run: make all
test:
@ -58,7 +58,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
- name: make test
run: make test
e2e:
@ -75,7 +75,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
- name: setup e2e test environment
run: hack/karmada-bootstrap.sh
- name: run e2e

View File

@ -17,7 +17,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
- name: build images
env:
REGISTRY: ${{secrets.SWR_REGISTRY}}

View File

@ -100,7 +100,7 @@ There are several demonstrations of common cases.
![Demo](docs/images/demo-3in1.svg)
### Prerequisites
- [Go](https://golang.org/) version v1.14+
- [Go](https://golang.org/) version v1.16+
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) version v1.19+
- [kind](https://kind.sigs.k8s.io/) version v0.9.0+

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/karmada-io/karmada
go 1.15
go 1.16
require (
github.com/distribution/distribution/v3 v3.0.0-20210507173845-9329f6a62b67