From 3f772c2711704027849ca32a8fa8d4116c7e9b09 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 4 Mar 2024 17:42:16 +0300 Subject: [PATCH] workflows: use newer Go 1.22, drop Go 1.19 Signed-off-by: Anna Shaleva --- .github/workflows/build.yml | 4 ++-- .github/workflows/tests.yml | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48f30c015..ec5dbf047 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - name: Build CLI run: make build @@ -135,7 +135,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - name: Login to DockerHub if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0a084a9f5..840f75c9c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -99,7 +99,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Write coverage profile @@ -118,24 +118,24 @@ jobs: strategy: matrix: os: [ubuntu-22.04, windows-2022, macos-12, macos-14] - go_versions: [ '1.19', '1.20', '1.21' ] + go_versions: [ '1.20', '1.21', '1.22' ] exclude: # Only latest Go version for Windows and MacOS. - os: windows-2022 - go_versions: '1.19' + go_versions: '1.20' - os: windows-2022 - go_versions: '1.20' - - os: macos-12 - go_versions: '1.19' + go_versions: '1.21' - os: macos-12 go_versions: '1.20' - - os: macos-14 - go_versions: '1.19' + - os: macos-12 + go_versions: '1.21' - os: macos-14 go_versions: '1.20' + - os: macos-14 + go_versions: '1.21' # Exclude latest Go version for Ubuntu as Coverage uses it. - os: ubuntu-22.04 - go_versions: '1.21' + go_versions: '1.22' fail-fast: false steps: - uses: actions/checkout@v4