kind: pipeline
type: docker
name: test

steps:
  - name: golangci-lint
    image: golangci/golangci-lint:latest-alpine
    commands:
      - golangci-lint run
  - name: test
    image: golang:1.13
    commands:
      - go test ./...
  - name: build-test
    image: golang:1.13
    commands:
      - go build

trigger:
  branch:
    - master
  event:
    - pull_request
    - push