ci: run golangi-lint checks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1f62d3dec6
commit
c2fab52268
@ -3,6 +3,26 @@
|
||||
|
||||
def main(ctx):
|
||||
return [
|
||||
{
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "golangci-lint",
|
||||
"steps": [
|
||||
{
|
||||
"name": "golangci-lint",
|
||||
"image": "docker.io/immawanderer/archlinux-go-fyne:linux-amd64",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"curl -sSfL " +
|
||||
"https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh"+
|
||||
" | sh -s -- -b $(go env GOPATH)/bin v1.46.2",
|
||||
"export PATH=\"$(go env GOPATH)/bin:$PATH\"",
|
||||
"golangci-lint --version",
|
||||
"golangci-lint run -v --timeout 5m"
|
||||
],
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
|
Loading…
Reference in New Issue
Block a user