From 2ecf98ed2d10aea4f1b4ba31887aa52b479c1317 Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Sun, 12 Jan 2020 22:26:13 +0100 Subject: [PATCH] ci: use docker image for golangci-lint (#9737) --- .drone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7a844af8e..c3a33b395 100644 --- a/.drone.yml +++ b/.drone.yml @@ -83,13 +83,18 @@ steps: - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs - go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit + - name: golangci-lint + pull: always + image: golangci/golangci-lint:v1.22.2 + commands: + - golangci-lint run -v --timeout 5m + - name: build pull: always image: golang:1.13 commands: - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs - make clean - - make golangci-lint - make revive - make swagger-check - make swagger-validate