File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ Add `.github/workflows/golangci-lint.yml` with the following contents:
23
23
name : golangci-lint
24
24
on :
25
25
push :
26
- tags :
27
- - v*
28
26
branches :
29
27
- master
30
28
- main
31
29
pull_request :
30
+
32
31
permissions :
33
32
contents : read
34
33
# Optional: allow read access to pull request. Use with `only-new-issues` option.
35
34
# pull-requests: read
35
+
36
36
jobs :
37
37
golangci :
38
38
name : lint
56
56
#
57
57
# Note: by default the `.golangci.yml` file should be at the root of the repository.
58
58
# The location of the configuration file can be changed by using `--config=`
59
- # args: --config=/my/path/.golangci.yml --issues-exit-code=0
59
+ # args: --timeout=30m -- config=/my/path/.golangci.yml --issues-exit-code=0
60
60
61
61
# Optional: show only new issues if it's a pull request. The default value is `false`.
62
62
# only-new-issues: true
@@ -83,8 +83,6 @@ If you need to run linters for specific operating systems, you will need to use
83
83
name : golangci-lint
84
84
on :
85
85
push :
86
- tags :
87
- - v*
88
86
branches :
89
87
- master
90
88
- main
@@ -122,7 +120,7 @@ jobs:
122
120
#
123
121
# Note: by default the `.golangci.yml` file should be at the root of the repository.
124
122
# The location of the configuration file can be changed by using `--config=`
125
- # args: --config=/my/path/.golangci.yml --issues-exit-code=0
123
+ # args: --timeout=30m -- config=/my/path/.golangci.yml --issues-exit-code=0
126
124
127
125
# Optional: show only new issues if it's a pull request. The default value is `false`.
128
126
# only-new-issues: true
You can’t perform that action at this time.
0 commit comments