Skip to content

Commit

Permalink
feat: bump Go version to v1.21.4 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgacsal authored Jan 13, 2024
1 parent 01b233a commit 22693ad
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 10 deletions.
48 changes: 41 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.18', '1.19', '1.20']

steps:
- name: Checkout repository
Expand All @@ -29,7 +26,19 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go }}
cache: false
go-version-file: 'go.mod'

- name: Setup Go caching
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ github.ref_name }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ github.ref_name }}-
${{ runner.os }}-go-${{ github.event.repository.default_branch }}-
- name: Test
run: make test
Expand All @@ -49,7 +58,19 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.20'
cache: false
go-version-file: 'integration_test/go.mod'

- name: Setup Go caching
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ github.ref_name }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ github.ref_name }}-
${{ runner.os }}-go-${{ github.event.repository.default_branch }}-
- name: Run integration tests
run: make integration-test
Expand All @@ -67,7 +88,19 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.20'
cache: false
go-version-file: 'go.mod'

- name: Setup Go caching
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ github.ref_name }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ github.ref_name }}-
${{ runner.os }}-go-${{ github.event.repository.default_branch }}-
- name: Run go fmt
run: make fmt
Expand All @@ -89,7 +122,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.20'
cache: false
go-version-file: 'go.mod'

- name: Update license cache
run: make license-cache
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func main() {

### Prerequisites

* golang `1.18`
* golang `1.20.11`
* docker
* docker-compose

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/banzaicloud/go-cruise-control

go 1.18
go 1.21.4

require (
github.com/go-logr/logr v1.2.4
Expand Down
2 changes: 1 addition & 1 deletion integration_test/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/banzaicloud/go-cruise-control/integration_test

go 1.18
go 1.21.4

require (
github.com/banzaicloud/go-cruise-control v0.0.0
Expand Down

0 comments on commit 22693ad

Please sign in to comment.