From 10c58fa9710c22bc2dea9bd8eda7abc2d1d66a27 Mon Sep 17 00:00:00 2001 From: Florian Lehner Date: Fri, 11 Oct 2024 10:39:09 +0200 Subject: [PATCH] CI: use Go 1.23 Signed-off-by: Florian Lehner --- .github/workflows/go.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d24f14a..bf0a493 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.20.x, 1.21.x, 1.22.x] + go-version: [1.13.x, 1.22.x, 1.23.x] platform: [ubuntu-latest, macos-latest, windows-latest] exclude: # There is no arm64 version of Go for darwin @@ -27,7 +27,7 @@ jobs: go-version: ${{ matrix.go-version }} - name: Ensure gofmt formatting - if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.22') + if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.23') run: | [ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ] @@ -40,13 +40,13 @@ jobs: run: go test -race -count=1 ./... - name: Integration test - if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.22') + if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.23') run: go test -v -tags integration -exec=sudo -count=1 ./... - name: staticcheck.io - if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.22') + if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.23') uses: dominikh/staticcheck-action@v1.3.1 with: - version: "2023.1.7" + version: "2024.1.1" install-go: false cache-key: ${{ matrix.go }}