github: Update Go build matrix

This commit is contained in:
Bjørn Erik Pedersen 2023-02-23 10:07:34 +01:00
parent 3b1116bc67
commit a6023d20a1
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.16.x,1.17.x,1.18.x]
go-version: [1.18.x,1.19.x,1.20.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
@ -16,7 +16,7 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Install staticcheck
if: matrix.go-version != '1.16.x'
if: matrix.go-version == '1.20.x'
run: go install honnef.co/go/tools/cmd/staticcheck@latest
shell: bash
- name: Update PATH
@ -31,7 +31,7 @@ jobs:
- name: Vet
run: go vet ./...
- name: Staticcheck
if: matrix.go-version != '1.16.x'
if: matrix.go-version == '1.20.x'
run: staticcheck ./...
- name: Test
run: go test -race ./...