From 0bbb4158526d5d8fc0e6c6132593f1ca49f628b1 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Sun, 13 Oct 2019 14:02:33 +0500 Subject: [PATCH] Drone pipelines update. --- .drone.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.drone.yml b/.drone.yml index 9ca8af7..ddebe80 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,8 +13,27 @@ steps: from_secret: discord_webhook_secret message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).' + - name: lint + image: golangci/golangci-lint:latest + environment: + GOFLAGS: -mod=vendor + CGO_ENABLED: 0 + commands: + - golangci-lint run + + - name: test + image: golang:1.13.1-alpine + environment: + GOFLAGS: -mod=vendor + CGO_ENABLED: 0 + commands: + - go test ./... + - name: docker image: plugins/docker + when: + branch: + master settings: username: from_secret: dockerhub_user