Skip to content

Commit b2260fd

Browse files
committed
drop Go 1.20, test on Go 1.22
1 parent 636d7a7 commit b2260fd

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.20.x, 1.21.x]
7+
go-version: [1.21.x, 1.22.x]
88
os: [ubuntu-latest, macos-latest, windows-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:
11-
- uses: actions/setup-go@v3
11+
- uses: actions/setup-go@v5
1212
with:
1313
go-version: ${{ matrix.go-version }}
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- run: go test ./...
1616
- run: go test -race ./...
1717

1818
# Static checks from this point forward. Only run on one Go version and on
1919
# Linux, since it's the fastest platform, and the tools behave the same.
20-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21.x'
20+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x'
2121
run: diff <(echo -n) <(gofmt -s -d .)
22-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21.x'
22+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x'
2323
run: go vet ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module mvdan.cc/gofumpt
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/frankban/quicktest v1.14.6

testdata/script/gomod.txtar

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Test various edge cases with go.mod files.
22

3-
[!go1.21] skip 'Go 1.20 or older cannot parse these go.mod files'
4-
53
exec gofumpt toolchain-stable/a.go
64
stdout '//gofumpt:diagnose.* -lang=v1.21'
75

0 commit comments

Comments
 (0)