workflows: use newer Go 1.22, drop Go 1.19

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
Anna Shaleva 2024-03-04 17:42:16 +03:00
parent c660a6e8f3
commit 3f772c2711
2 changed files with 11 additions and 11 deletions

View file

@ -53,7 +53,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.22'
- name: Build CLI - name: Build CLI
run: make build run: make build
@ -135,7 +135,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.22'
- name: Login to DockerHub - name: Login to DockerHub
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }} if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }}

View file

@ -99,7 +99,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.22'
cache: true cache: true
- name: Write coverage profile - name: Write coverage profile
@ -118,24 +118,24 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-22.04, windows-2022, macos-12, macos-14] 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: exclude:
# Only latest Go version for Windows and MacOS. # Only latest Go version for Windows and MacOS.
- os: windows-2022 - os: windows-2022
go_versions: '1.19' go_versions: '1.20'
- os: windows-2022 - os: windows-2022
go_versions: '1.20' go_versions: '1.21'
- os: macos-12
go_versions: '1.19'
- os: macos-12 - os: macos-12
go_versions: '1.20' go_versions: '1.20'
- os: macos-14 - os: macos-12
go_versions: '1.19' go_versions: '1.21'
- os: macos-14 - os: macos-14
go_versions: '1.20' go_versions: '1.20'
- os: macos-14
go_versions: '1.21'
# Exclude latest Go version for Ubuntu as Coverage uses it. # Exclude latest Go version for Ubuntu as Coverage uses it.
- os: ubuntu-22.04 - os: ubuntu-22.04
go_versions: '1.21' go_versions: '1.22'
fail-fast: false fail-fast: false
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4