Skip to content

Commit

Permalink
workflow: use go1.19 to align with go.mod go version used (#213)
Browse files Browse the repository at this point in the history
* workflow: use go1.19 to align with go.mod go version used

* doc: fix operator-sdk & kind versions used for development
  • Loading branch information
KevFan authored Jul 12, 2023
1 parent dbcc8d4 commit 1cd8e4b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 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.18.x
- name: Set up Go 1.19.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.x
id: go
- name: Check out code
uses: actions/checkout@v2
Expand Down Expand Up @@ -147,10 +147,10 @@ jobs:
needs: [build, build-bundle]
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18.x
- name: Set up Go 1.19.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.x
id: go
- name: Check out code
uses: actions/checkout@v2
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.18.x
- name: Set up Go 1.19.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.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.18.x
- name: Set up Go 1.19.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.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.18.x ]
go-version: [ 1.19.x ]
platform: [ ubuntu-latest ]
runs-on: ${{ matrix.platform }}
defaults:
Expand Down Expand Up @@ -46,10 +46,10 @@ jobs:
run:
shell: bash
steps:
- name: Set up Go 1.18.x
- name: Set up Go 1.19.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.x
id: go
- name: Check out code
uses: actions/checkout@v2
Expand Down Expand Up @@ -80,10 +80,10 @@ jobs:
name: Verify manifests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18.x
- name: Set up Go 1.19.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.x
id: go
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -95,10 +95,10 @@ jobs:
name: Verify bundle
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18.x
- name: Set up Go 1.19.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.x
id: go
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -110,10 +110,10 @@ jobs:
name: Verify fmt
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18.x
- name: Set up Go 1.19.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.x
id: go
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -125,7 +125,7 @@ jobs:
name: Test Scripts
strategy:
matrix:
go-version: [ 1.18.x ]
go-version: [ 1.19.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.18 as builder
FROM golang:1.19 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
6 changes: 3 additions & 3 deletions doc/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

## Technology stack required for development

* [operator-sdk] version v1.22.0
* [kind] version v0.11.1
* [operator-sdk] version v1.28.1
* [kind] version v0.20.0
* [git][git_tool]
* [go] version 1.18+
* [go] version 1.19+
* [kubernetes] version v1.19+
* [kubectl] version v1.19+

Expand Down

0 comments on commit 1cd8e4b

Please sign in to comment.