Skip to content

Commit 2ecf98e

Browse files
sapktechknowlogick
authored andcommitted
ci: use docker image for golangci-lint (#9737)
1 parent a3977a3 commit 2ecf98e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.drone.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,18 @@ steps:
8383
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
8484
- go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
8585

86+
- name: golangci-lint
87+
pull: always
88+
image: golangci/golangci-lint:v1.22.2
89+
commands:
90+
- golangci-lint run -v --timeout 5m
91+
8692
- name: build
8793
pull: always
8894
image: golang:1.13
8995
commands:
9096
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
9197
- make clean
92-
- make golangci-lint
9398
- make revive
9499
- make swagger-check
95100
- make swagger-validate

0 commit comments

Comments
 (0)