0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-11 00:20:40 +00:00
wp-plugin-go/.drone.yml

58 lines
782 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: testing
platform:
os: linux
arch: amd64
steps:
- name: staticcheck
pull: always
2020-08-26 11:53:42 +00:00
image: golang:1.15
commands:
- go run honnef.co/go/tools/cmd/staticcheck ./...
volumes:
- name: gopath
path: /go
- name: lint
pull: always
2020-08-26 11:53:42 +00:00
image: golang:1.15
commands:
- go run golang.org/x/lint/golint -set_exit_status ./...
volumes:
- name: gopath
path: /go
- name: vet
pull: always
2020-08-26 11:53:42 +00:00
image: golang:1.15
commands:
- go vet ./...
volumes:
- name: gopath
path: /go
- name: test
pull: always
2020-08-26 11:53:42 +00:00
image: golang:1.15
commands:
- go test -cover -v ./...
volumes:
- name: gopath
path: /go
volumes:
- name: gopath
temp: {}
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**
...