summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2020-01-12 22:26:13 +0100
committertechknowlogick <techknowlogick@gitea.io>2020-01-12 16:26:13 -0500
commit2ecf98ed2d10aea4f1b4ba31887aa52b479c1317 (patch)
tree42544321d3ff19a9005b4fba44b038aebc1219c8
parenta3977a3e51417ddda8f0e7fde97b4e29d2d224f7 (diff)
downloadgitea-2ecf98ed2d10aea4f1b4ba31887aa52b479c1317.tar.gz
gitea-2ecf98ed2d10aea4f1b4ba31887aa52b479c1317.zip
ci: use docker image for golangci-lint (#9737)
-rw-r--r--.drone.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml
index 7a844af8eb..c3a33b3950 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