2020-11-25 20:36:07 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: testing
|
|
|
|
|
2022-11-02 17:49:03 +01:00
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/pull/*/head
|
|
|
|
|
2020-11-25 20:36:07 +01: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-11-02 17:49:03 +01:00
|
|
|
GOPROXY: https://goproxy.io
|
|
|
|
GO111MODULE: "on"
|