ci: run golangi-lint checks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-05-28 21:02:40 +02:00
parent 1f62d3dec6
commit c2fab52268
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -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",