2020-07-19 19:32:22 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: testing
|
|
|
|
|
2022-07-16 11:43:41 +02:00
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/pull/*/head
|
|
|
|
|
2020-07-19 19:32:22 +02: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:
|
2022-07-16 11:43:41 +02:00
|
|
|
GOPROXY: https://goproxy.io
|
|
|
|
GO111MODULE: "on"
|