drone-template-lib/.drone.yml

35 lines
405 B
YAML

---
kind: pipeline
name: testing
platform:
os: linux
arch: amd64
steps:
- name: vet
image: golang:1.12
commands:
- go vet ./...
volumes:
- name: gopath
path: /go
- name: test
image: golang:1.12
commands:
- go test -cover ./...
volumes:
- name: gopath
path: /go
volumes:
- name: gopath
temp: {}
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**