--- kind: pipeline name: testing platform: os: linux arch: amd64 steps: - name: vet pull: always image: golang:1.11 commands: - go vet ./... environment: GO111MODULE: on volumes: - name: gopath path: /go - name: test pull: always image: golang:1.11 commands: - go test -cover ./... environment: GO111MODULE: on volumes: - name: gopath path: /go volumes: - name: gopath temp: {} trigger: ref: - refs/heads/master - "refs/tags/**" - "refs/pull/**"