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 e4eb49e..024f445 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module mvdan.cc/gofumpt -go 1.20 +go 1.21 require ( github.com/frankban/quicktest v1.14.6 diff --git a/testdata/script/gomod.txtar b/testdata/script/gomod.txtar index faf86da..90f13a8 100644 --- a/testdata/script/gomod.txtar +++ b/testdata/script/gomod.txtar @@ -1,7 +1,5 @@ # Test various edge cases with go.mod files. -[!go1.21] skip 'Go 1.20 or older cannot parse these go.mod files' - exec gofumpt toolchain-stable/a.go stdout '//gofumpt:diagnose.* -lang=v1.21'