Skip to content

Commit

Permalink
feat: upgrade to Go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Aug 24, 2023
1 parent 6f3b3fd commit 9aaccdb
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-images-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ jobs:
name: Build Bundle
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
id: go
- name: Check out code
uses: actions/checkout@v3
Expand Down Expand Up @@ -147,10 +147,10 @@ jobs:
needs: [build, build-bundle]
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
id: go
- name: Check out code
uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
importpath: golang.org/x/tools/cmd/goimports@latest

steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
id: go

- name: Check out code
Expand Down Expand Up @@ -90,10 +90,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
id: go

- name: Check out code
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Unit Tests
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.20.x ]
platform: [ ubuntu-latest ]
runs-on: ${{ matrix.platform }}
defaults:
Expand Down Expand Up @@ -53,10 +53,10 @@ jobs:
run:
shell: bash
steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
id: go
- name: Check out code
uses: actions/checkout@v3
Expand Down Expand Up @@ -94,10 +94,10 @@ jobs:
name: Verify manifests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
id: go
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -109,10 +109,10 @@ jobs:
name: Verify bundle
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
id: go
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -124,10 +124,10 @@ jobs:
name: Verify fmt
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
id: go
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -139,7 +139,7 @@ jobs:
name: Test Scripts
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.20.x ]
platform: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.platform }}
defaults:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.19 as builder
FROM golang:1.20 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion doc/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* [operator-sdk] version v1.28.1
* [kind] version v0.20.0
* [git][git_tool]
* [go] version 1.19+
* [go] version 1.20+
* [kubernetes] version v1.19+
* [kubectl] version v1.19+

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/kuadrant/kuadrant-operator

go 1.19
go 1.20

require (
github.com/elliotchance/orderedmap/v2 v2.2.0
Expand Down

0 comments on commit 9aaccdb

Please sign in to comment.