File tree Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : golangci-lint
2
+ on :
3
+ pull_request :
4
+ permissions :
5
+ contents : read
6
+ jobs :
7
+ golangci :
8
+ name : lint
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+
13
+ - uses : actions/setup-go@v3
14
+ with :
15
+ go-version : " 1.18.10"
16
+
17
+ - name : golangci-lint
18
+ uses : golangci/golangci-lint-action@v3
19
+ with :
20
+ version : v1.53.3
21
+ only-new-issues : true
22
+
23
+ - name : Check go.mod
24
+ run : |
25
+ go mod tidy && git diff --exit-code
Original file line number Diff line number Diff line change
1
+ [run ]
2
+ timeout = " 1m"
3
+
4
+ [output ]
5
+ format = " colored-line-number"
6
+
7
+ [linters ]
8
+ disable-all = true
9
+ enable = [
10
+ " gofumpt" ,
11
+ ]
12
+
13
+ [issues ]
14
+ exclude-use-default = false
Original file line number Diff line number Diff line change 72
72
executor : gopherjs
73
73
steps :
74
74
- setup_and_install_gopherjs
75
- - run :
76
- name : Check gofmt
77
- command : diff -u <(echo -n) <(gofmt -d .)
78
75
- run :
79
76
name : Check go vet
80
77
command : |
You can’t perform that action at this time.
0 commit comments