File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 10
10
- name : golangci-lint
11
11
uses : ./
12
12
with :
13
- github_token : ${{ secrets.github_token }}
14
13
directory : sample
15
14
format : colored-line-number
16
15
flags : --issues-exit-code 0
Original file line number Diff line number Diff line change 1
1
# golangci-lint-action
2
2
3
- Work in progress
3
+ ![ docker image] ( https://github.com/golangci/golangci-lint-action/workflows/docker%20image/badge.svg )
4
+
5
+ Action that runs [ golangci-lint] ( https://github.com/golangci/golangci-lint ) and reports issues from linters.
6
+
7
+ You can put ` .github/workflows/lint.yml ` with following contents:
8
+ ``` yaml
9
+ name : golangci
10
+ on : [push]
11
+ jobs :
12
+ golangci :
13
+ name : lint
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Check out code into the Go module directory
17
+ uses : actions/checkout@v1
18
+ - name : golangci-lint
19
+
20
+ with :
21
+ github_token : ${{ secrets.github_token }}
22
+
23
+ ```
4
24
5
25
Based on [ reviewdog action] ( https://github.com/reviewdog/action-golangci-lint ) .
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ author: 'golangci'
5
5
inputs :
6
6
github_token :
7
7
description : ' GITHUB_TOKEN'
8
- required : true
8
+ required : false
9
9
flags :
10
10
description : ' GolangCI command line flags'
11
11
required : false
You can’t perform that action at this time.
0 commit comments