2021-11-07 20:44:48 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: testing
|
|
|
|
|
2022-06-05 23:07:32 +02:00
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/pull/*/head
|
|
|
|
|
2021-11-07 20:44:48 +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-06-05 23:07:32 +02:00
|
|
|
GOPROXY: https://goproxy.io
|
|
|
|
GO111MODULE: "on"
|