ci: test on Golang 1.19 (#1782)

* ci: test on Golang 1.19

* ci: run golangci-lint on golang 1.19

* Adds `check-latest` for setup-go action v3

* ci/golangci-lint: use latest version available in setup-go's manifest

Signed-off-by: John McBride <jpmmcbride@gmail.com>
Signed-off-by: umarcor <unai.martinezcorral@ehu.eus>
Co-authored-by: John McBride <jpmmcbride@gmail.com>
This commit is contained in:
Unai Martinez-Corral 2022-08-30 02:35:16 +01:00 committed by GitHub
parent 22b617914c
commit 7045405250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,8 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: '^1.19'
check-latest: true
- uses: actions/checkout@v3
@ -37,6 +38,7 @@ jobs:
- 16
- 17
- 18
- 19
name: '${{ matrix.platform }} | 1.${{ matrix.go }}.x'
runs-on: ${{ matrix.platform }}-latest
steps:
@ -56,8 +58,8 @@ jobs:
- run: |
export GOBIN=$HOME/go/bin
case "${{ matrix.go }}" in
16|17|18) _version='@latest';;
*) _version='';;
14|15) _version='';;
*) _version='@latest';;
esac
go install github.com/kyoh86/richgo"${_version}"
go install github.com/mitchellh/gox"${_version}"