From 8a5130ca722ffad18c95cc467b561f1668b9b0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 28 May 2024 15:35:40 +0100 Subject: [PATCH] drop Go 1.20, add Go 1.22 --- .github/workflows/test.yml | 10 +++++----- go.mod | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 794c448..5eb4db9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,20 +4,20 @@ jobs: test: strategy: matrix: - go-version: [1.20.x, 1.21.x] + go-version: [1.21.x, 1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: go test ./... - run: go test -race ./... # Static checks from this point forward. Only run on one Go version and on # Linux, since it's the fastest platform, and the tools behave the same. - - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21.x' + - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x' run: diff <(echo -n) <(gofmt -s -d .) - - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21.x' + - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x' run: go vet ./... diff --git a/go.mod b/go.mod index b46b72e..6d9d6e5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module mvdan.cc/unparam -go 1.20 +go 1.21 require ( github.com/rogpeppe/go-internal v1.12.0