builder/.drone.yml

29 lines
506 B
YAML

---
kind: pipeline
name: testing
trigger:
ref:
- refs/heads/master
- refs/pull/*/head
steps:
- name: test-compitable
pull: default
image: golang:1.11
commands:
- go build
environment:
GOPROXY: https://goproxy.io
GO111MODULE: "on"
- name: test
pull: default
image: golang:1.18
commands:
- go install golang.org/x/lint/golint@latest
- golint ./...
- go vet
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
environment:
GOPROXY: https://goproxy.io