From b1a1ca514c1a9f83e5a136fc6c05e2626bf7eea6 Mon Sep 17 00:00:00 2001 From: Florian Lehner Date: Sat, 9 Mar 2024 22:14:14 +0100 Subject: [PATCH] CI: use Go 1.22 Signed-off-by: Florian Lehner --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ffc29ac..6ecb059 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,7 +10,7 @@ jobs: test: strategy: matrix: - go-version: [1.13.x, 1.19.x, 1.20.x, 1.21.x] + go-version: [1.13.x, 1.20.x, 1.21.x, 1.22.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -23,7 +23,7 @@ jobs: go-version: ${{ matrix.go-version }} - name: Ensure gofmt formatting - if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.21') + if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.22') run: | [ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ] @@ -36,11 +36,11 @@ jobs: run: go test -race -count=1 ./... - name: Integration test - if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.21') + if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.22') run: go test -v -tags integration -exec=sudo -count=1 ./... - name: staticcheck.io - if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.21') + if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.22') uses: dominikh/staticcheck-action@v1.3.0 with: version: "2023.1.7"