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:
parent
22b617914c
commit
7045405250
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -15,7 +15,8 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '1.17'
|
go-version: '^1.19'
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -37,6 +38,7 @@ jobs:
|
|||||||
- 16
|
- 16
|
||||||
- 17
|
- 17
|
||||||
- 18
|
- 18
|
||||||
|
- 19
|
||||||
name: '${{ matrix.platform }} | 1.${{ matrix.go }}.x'
|
name: '${{ matrix.platform }} | 1.${{ matrix.go }}.x'
|
||||||
runs-on: ${{ matrix.platform }}-latest
|
runs-on: ${{ matrix.platform }}-latest
|
||||||
steps:
|
steps:
|
||||||
@ -56,8 +58,8 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
export GOBIN=$HOME/go/bin
|
export GOBIN=$HOME/go/bin
|
||||||
case "${{ matrix.go }}" in
|
case "${{ matrix.go }}" in
|
||||||
16|17|18) _version='@latest';;
|
14|15) _version='';;
|
||||||
*) _version='';;
|
*) _version='@latest';;
|
||||||
esac
|
esac
|
||||||
go install github.com/kyoh86/richgo"${_version}"
|
go install github.com/kyoh86/richgo"${_version}"
|
||||||
go install github.com/mitchellh/gox"${_version}"
|
go install github.com/mitchellh/gox"${_version}"
|
||||||
|
Loading…
Reference in New Issue
Block a user