From 237ce4ee2af3f23d6343b17b7e479c35802a9673 Mon Sep 17 00:00:00 2001 From: Luther Wen Xu Date: Thu, 23 Apr 2020 16:31:34 +0800 Subject: [PATCH] Drone: Add linter --- .drone.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5705e32..8d4ff4f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,18 @@ kind: pipeline name: Build Application steps: -- name: Build And Test +- name: Build image: golang:1.14 commands: - go build ./... +- name: Test + image: golang:1.14 + commands: - go test ./... +- name: Lint + image: golangci/golangci-lint:v1.25.0 + commands: + - golangci-lint run -v --- kind: pipeline