upgrade to golang1.19 (#163)

Signed-off-by: Yang Le <yangle@redhat.com>

Signed-off-by: Yang Le <yangle@redhat.com>
This commit is contained in:
Yang Le
2022-10-28 17:01:45 +08:00
committed by GitHub
parent d20928e2bf
commit f8d1857345
6 changed files with 9 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ on:
env:
# Common versions
GO_VERSION: '1.18'
GO_VERSION: '1.19'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/work/work/go'
defaults:

View File

@@ -9,7 +9,7 @@ on:
env:
# Common versions
GO_VERSION: '1.18'
GO_VERSION: '1.19'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/work/work/go'
defaults:

View File

@@ -6,7 +6,7 @@ on:
- 'v*.*.*'
env:
# Common versions
GO_VERSION: '1.18'
GO_VERSION: '1.19'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/work/work/go'
GITHUB_REF: ${{ github.ref }}

View File

@@ -1,4 +1,4 @@
FROM golang:1.18 AS builder
FROM golang:1.19 AS builder
ARG OS=linux
ARG ARCH=amd64
WORKDIR /go/src/open-cluster-management.io/work

2
go.mod
View File

@@ -1,6 +1,6 @@
module open-cluster-management.io/work
go 1.18
go 1.19
require (
github.com/davecgh/go-spew v1.1.1

View File

@@ -43,10 +43,10 @@ func TestE2e(t *testing.T) {
// This suite is sensitive to the following environment variables:
//
// - IMAGE_NAME sets the exact image to deploy for the work agent
// - IMAGE_REGISTRY sets the image registry to use to build the IMAGE_NAME if
// IMAGE_NAME is unset: IMAGE_REGISTRY/work:latest
// - KUBECONFIG is the location of the kubeconfig file to use
// - IMAGE_NAME sets the exact image to deploy for the work agent
// - IMAGE_REGISTRY sets the image registry to use to build the IMAGE_NAME if
// IMAGE_NAME is unset: IMAGE_REGISTRY/work:latest
// - KUBECONFIG is the location of the kubeconfig file to use
var _ = ginkgo.BeforeSuite(func() {
logf.SetLogger(zap.New(zap.WriteTo(ginkgo.GinkgoWriter), zap.UseDevMode(true)))
workImage = os.Getenv("IMAGE_NAME")