Skip to content

Commit 9b05d69

Browse files
committed
drop Go 1.16, test on 1.18, add checks
1 parent 06043a6 commit 9b05d69

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.16.x, 1.17.x]
7+
go-version: [1.17.x, 1.18.x]
88
os: [ubuntu-latest, macos-latest, windows-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:
11-
- name: Install Go
12-
uses: actions/setup-go@v2
11+
- uses: actions/setup-go@v3
1312
with:
1413
go-version: ${{ matrix.go-version }}
15-
- name: Checkout code
16-
uses: actions/checkout@v2
17-
- name: Test
18-
run: go test ./...
14+
- uses: actions/checkout@v3
15+
- run: go test ./...
16+
- run: go test -race ./...
17+
18+
# Static checks from this point forward. Only run on one Go version and on
19+
# Linux, since it's the fastest platform, and the tools behave the same.
20+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.18.x'
21+
run: diff <(echo -n) <(gofmt -s -d .)
22+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.18.x'
23+
run: go vet ./...

go.mod

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

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/frankban/quicktest v1.14.2
@@ -11,3 +11,11 @@ require (
1111
golang.org/x/sys v0.0.0-20220209214540-3681064d5158
1212
golang.org/x/tools v0.1.9
1313
)
14+
15+
require (
16+
github.com/kr/pretty v0.3.0 // indirect
17+
github.com/kr/text v0.2.0 // indirect
18+
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e // indirect
19+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
20+
gopkg.in/errgo.v2 v2.1.0 // indirect
21+
)

0 commit comments

Comments
 (0)