File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 4
4
test :
5
5
strategy :
6
6
matrix :
7
- go-version : [1.16 .x, 1.17 .x]
7
+ go-version : [1.17 .x, 1.18 .x]
8
8
os : [ubuntu-latest, macos-latest, windows-latest]
9
9
runs-on : ${{ matrix.os }}
10
10
steps :
11
- - name : Install Go
12
- uses : actions/setup-go@v2
11
+ - uses : actions/setup-go@v3
13
12
with :
14
13
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 ./...
Original file line number Diff line number Diff line change 1
1
module mvdan.cc/gofumpt
2
2
3
- go 1.16
3
+ go 1.17
4
4
5
5
require (
6
6
github.com/frankban/quicktest v1.14.2
@@ -11,3 +11,11 @@ require (
11
11
golang.org/x/sys v0.0.0-20220209214540-3681064d5158
12
12
golang.org/x/tools v0.1.9
13
13
)
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
+ )
You can’t perform that action at this time.
0 commit comments