forked from mirror/cobra
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
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue