mirror of
https://github.com/thegeeklab/drone-template-lib.git
synced 2024-11-16 09:50:39 +00:00
57 lines
771 B
YAML
57 lines
771 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: testing
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: environment
|
|
image: golang:1.15
|
|
commands:
|
|
- go version
|
|
- go env
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
- name: staticcheck
|
|
image: golang:1.15
|
|
commands:
|
|
- go run honnef.co/go/tools/cmd/staticcheck ./...
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
- name: lint
|
|
image: golang:1.15
|
|
commands:
|
|
- go run golang.org/x/lint/golint -set_exit_status ./...
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
- name: vet
|
|
image: golang:1.15
|
|
commands:
|
|
- go vet ./...
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
- name: test
|
|
image: golang:1.15
|
|
commands:
|
|
- go test -cover -v ./...
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
volumes:
|
|
- name: gopath
|
|
temp: {}
|
|
|
|
...
|