mirror of
https://github.com/thegeeklab/drone-template-lib.git
synced 2024-11-16 09:50:39 +00:00
41 lines
509 B
YAML
41 lines
509 B
YAML
---
|
|
kind: pipeline
|
|
name: testing
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: vet
|
|
pull: always
|
|
image: golang:1.11
|
|
commands:
|
|
- go vet ./...
|
|
environment:
|
|
GO111MODULE: on
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
- name: test
|
|
pull: always
|
|
image: golang:1.11
|
|
commands:
|
|
- go test -cover ./...
|
|
environment:
|
|
GO111MODULE: on
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
volumes:
|
|
- name: gopath
|
|
temp: {}
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/master
|
|
- "refs/tags/**"
|
|
- "refs/pull/**"
|