From 704540525032e759304ffdbdacb2050dbdf4b2c5 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> Date: Tue, 30 Aug 2022 02:35:16 +0100 Subject: [PATCH] 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 Signed-off-by: umarcor Co-authored-by: John McBride --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ca8367..e0c2f15 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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}"