Linting.
This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -20,14 +20,18 @@ steps:
|
||||
CGO_ENABLED: 0
|
||||
commands:
|
||||
- golangci-lint run
|
||||
depends_on:
|
||||
- notify-start
|
||||
|
||||
- name: test
|
||||
image: golang:1.13.1-alpine
|
||||
image: golang:1.13.5-alpine
|
||||
environment:
|
||||
GOFLAGS: -mod=vendor
|
||||
CGO_ENABLED: 0
|
||||
commands:
|
||||
- go test ./...
|
||||
depends_on:
|
||||
- notify-start
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
@@ -40,6 +44,9 @@ steps:
|
||||
from_secret: dockerhub_password
|
||||
repo: pztrn/fastpastebin
|
||||
auto_tag: true
|
||||
depends_on:
|
||||
- lint
|
||||
- test
|
||||
|
||||
- name: notify-end
|
||||
when:
|
||||
@@ -58,3 +65,5 @@ steps:
|
||||
{{ else }}
|
||||
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
|
||||
{{/success}}"
|
||||
depends_on:
|
||||
- docker
|
||||
|
||||
Reference in New Issue
Block a user