You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
496 B
YAML
37 lines
496 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: test
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang:1.20
|
|
commands:
|
|
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
branch:
|
|
- master
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: check-go-mod
|
|
|
|
steps:
|
|
- name: check go.mod
|
|
image: golang:1.20
|
|
commands:
|
|
- go mod tidy
|
|
- git diff --exit-code go.mod
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
branch:
|
|
- master
|