From c2fab52268432d457cf3d3206ae38cd29265f46c Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 28 May 2022 21:02:40 +0200 Subject: [PATCH] ci: run golangi-lint checks --- .drone.starlark | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.drone.starlark b/.drone.starlark index 572dc30..232ff31 100644 --- a/.drone.starlark +++ b/.drone.starlark @@ -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",