kind: pipeline
type: docker
name: default
clone:
  retries: 3
trigger:
  branch: 
    - master
  event:
    - push
  ref:
    - refs/heads/master
    - refs/heads/**
    - refs/pull/*/head
  repo:
  status:
  target:
  cron:
  action:
platform:
  os: linux
  arch: amd64
  version:
workspace:
  path: /src
node: {}
steps:
  - name: build
    image: golang
    environment:
      GOOS: linux
      GOARCH: amd64
    
    settings: {}
    commands:
      - go build
      - go test
    
    failure: ignore
    
    detach: false
    privileged: false
    when:
      branch:
        - master
  - name: notify
    image: plugins/slack
    settings:
      webhook: https://hooks.slack.com/services
    when:
      status:
        - failure
        - success