From e7617137fbd9e6763546390ca3562115a7e0facb Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 19 Aug 2024 12:26:37 +0300 Subject: [PATCH] Build with Go 1.23 Signed-off-by: Stefan Prodan --- .github/workflows/golangci-lint.yaml | 2 +- .github/workflows/pre-commit.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/tests.yaml | 11 ++++++----- .github/workflows/update-flux.yaml | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 808cd51..25588c8 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: 1.23.x cache-dependency-path: | **/go.sum **/go.mod diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index eb654d7..7a98cf0 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -47,7 +47,7 @@ jobs: - name: Setup Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: 1.23.x cache-dependency-path: | **/go.sum **/go.mod diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0d5445d..c8e8195 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,7 +22,7 @@ jobs: - name: Setup Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: 1.23.x cache: false - name: Import GPG key uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 33162e6..84d8ff6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,6 +7,7 @@ on: branches: [ main ] env: + GO_VERSION: 1.23.x TERRAFORM_VERSION: 1.8.* jobs: @@ -18,7 +19,7 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: "${{env.GO_VERSION}}" cache-dependency-path: | **/go.sum **/go.mod @@ -56,7 +57,7 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: "${{env.GO_VERSION}}" - uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1 with: terraform_version: ${{ matrix.terraform }} @@ -73,7 +74,7 @@ jobs: - name: Setup Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: "${{env.GO_VERSION}}" cache-dependency-path: | **/go.sum **/go.mod @@ -155,7 +156,7 @@ jobs: - name: Setup Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: "${{env.GO_VERSION}}" cache-dependency-path: | **/go.sum **/go.mod @@ -209,7 +210,7 @@ jobs: - name: Setup Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: "${{env.GO_VERSION}}" cache-dependency-path: | **/go.sum **/go.mod diff --git a/.github/workflows/update-flux.yaml b/.github/workflows/update-flux.yaml index db24af2..618015f 100644 --- a/.github/workflows/update-flux.yaml +++ b/.github/workflows/update-flux.yaml @@ -14,7 +14,7 @@ jobs: - name: Setup Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22.x + go-version: 1.23.x cache-dependency-path: | **/go.sum **/go.mod