2019-09-24 22:22:39 +09:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2020-03-23 00:12:55 +09:00
|
|
|
name: testing
|
2019-09-24 22:22:39 +09:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
pull: default
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
|
|
|
- go get -u golang.org/x/lint/golint
|
|
|
|
- golint ./...
|
|
|
|
- go vet
|
|
|
|
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
|
|
|
|
environment:
|
|
|
|
GOPROXY: https://goproxy.cn
|
|
|
|
GO111MODULE: "on"
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
- pull_request
|