From 12cc1cc163a2565bd470ec0bffea3fdfe044eae9 Mon Sep 17 00:00:00 2001 From: Florian Lehner Date: Sat, 13 Apr 2024 12:30:15 +0200 Subject: [PATCH] CI: use Go 1.22 Signed-off-by: Florian Lehner --- .github/workflows/go.yml | 8 ++++---- .github/workflows/integration-arm64.yml | 5 +++-- .github/workflows/integration.yml | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e3ca205..bff8af6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,7 +13,7 @@ jobs: go-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: @@ -34,14 +34,14 @@ jobs: if: matrix.platform == 'ubuntu-latest' run: go test -race -count=3 ./... - name: Test with -shuffle=on - 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 -shuffle=on -count=3 ./... - name: Integrationtest for linux if: matrix.platform == 'ubuntu-latest' run: | go test -race -v -exec=sudo -tags integration -covermode=atomic -coverprofile=profile.cov ./... - name: coveralls.io - if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.21') + if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.22') env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -68,7 +68,7 @@ jobs: go install golang.org/x/lint/golint@latest $(go env GOPATH)/bin/golint $(go list ./... | grep -v internal/unix) - name: staticcheck.io - if: startsWith(matrix.go-version, '1.21') + if: startsWith(matrix.go-version, '1.22') uses: dominikh/staticcheck-action@v1.3.1 with: version: "2023.1.7" diff --git a/.github/workflows/integration-arm64.yml b/.github/workflows/integration-arm64.yml index 1c2bdfa..dc4dfa8 100644 --- a/.github/workflows/integration-arm64.yml +++ b/.github/workflows/integration-arm64.yml @@ -28,7 +28,7 @@ jobs: - name: set up Go uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: 1.22 id: go - name: cross-compile tests @@ -53,4 +53,5 @@ jobs: # Run the tests. run: | qemu-system-aarch64 -nographic -append "console=ttyAMA0" -M virt -cpu cortex-a57 -m 4G -kernel linux-${{ matrix.kernel-version }}.arm64 -initrd initramfs.cpio | tee log.txt - grep PASS log.txt \ No newline at end of file + grep PASS log.txt + diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 398947e..be68e99 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -19,7 +19,7 @@ jobs: - name: set up Go uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: 1.22 id: go - name: compile tests