File tree 1 file changed +11
-16
lines changed 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change 56
56
required : false
57
57
type : string
58
58
59
+ golangci_lint_version :
60
+ description : Version of golangci-lint to use
61
+ default : 1.52.2
62
+ required : false
63
+ type : string
64
+
59
65
develop_branch_name :
60
66
description : Name of the branch with the `develop` role. Can be left empty if thre is no such branch
61
67
default : " "
107
113
required : false
108
114
type : string
109
115
110
- build_tags :
111
- description : Extra build args (used for staticcheck)
112
- default : " "
113
- required : false
114
- type : string
115
-
116
116
secrets :
117
117
docker_password :
118
118
description : Target Docker password
@@ -160,18 +160,13 @@ jobs:
160
160
version : 3.x
161
161
repo-token : ${{ secrets.GITHUB_TOKEN }}
162
162
163
- - name : Run go vet
164
- run : task vet
165
-
166
- - name : Run gofmt
167
- run : task gofmt
163
+ - name : Prepare linting
164
+ run : task pre-lint
168
165
169
- - name : Run staticcheck
170
- uses : dominikh/staticcheck- action@v1.3.0
166
+ - name : Run golangci-lint
167
+ uses : golangci/golangci-lint- action@v3
171
168
with :
172
- version : 2023.1.3
173
- install-go : false
174
- build-tags : ${{ inputs.build_tags }}
169
+ version : v${{ inputs.golangci_lint_version }}
175
170
176
171
- name : Run hadolint
177
172
run : |
You can’t perform that action at this time.
0 commit comments