workflows: update to Go 1.22

We want to support and test the latest versions of Go.  Now that Go 1.22
is out, let's test against 1.22 and 1.21 instead of 1.21 and 1.20.
This commit is contained in:
brian m. carlson 2024-02-08 21:25:34 +00:00
parent df0eab4d04
commit c4f2c2ee65
No known key found for this signature in database
GPG Key ID: 2D0C9BC12F82B3A1
2 changed files with 6 additions and 6 deletions

@ -9,7 +9,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
go: ['1.21.x'] go: ['1.22.x']
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -47,7 +47,7 @@ jobs:
name: Build with specific Go name: Build with specific Go
strategy: strategy:
matrix: matrix:
go: ['1.20.x'] go: ['1.21.x']
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -76,7 +76,7 @@ jobs:
# which does not honour the PATH we set to our built git-lfs binary. # which does not honour the PATH we set to our built git-lfs binary.
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '1.21.x' go-version: '1.22.x'
- run: mkdir -p "$HOME/go/bin" - run: mkdir -p "$HOME/go/bin"
shell: bash shell: bash
- run: set GOPATH=%HOME%\go - run: set GOPATH=%HOME%\go

@ -11,7 +11,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
strategy: strategy:
matrix: matrix:
go: ['1.21.x'] go: ['1.22.x']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -99,7 +99,7 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
strategy: strategy:
matrix: matrix:
go: ['1.21.x'] go: ['1.22.x']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -138,7 +138,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go: ['1.21.x'] go: ['1.22.x']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with: