Skip to content

Commit

Permalink
drop Go 1.20, test on Go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Feb 25, 2024
1 parent 636d7a7 commit b2260fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module mvdan.cc/gofumpt

go 1.20
go 1.21

require (
github.com/frankban/quicktest v1.14.6
Expand Down
2 changes: 0 additions & 2 deletions testdata/script/gomod.txtar
Original file line number Diff line number Diff line change
@@ -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'

Expand Down

0 comments on commit b2260fd

Please sign in to comment.