---
kind: pipeline
type: docker
name: test
steps:
- name: test
image: golang:1.19
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
trigger:
event:
- push
- pull_request
branch:
- master
name: check-go-mod
- name: check go.mod
- go mod tidy
- git diff --exit-code go.mod
name: golangci-lint
- name: run golangci-lint
image: golangci/golangci-lint:v1.50
- golangci-lint run