pipeline:
  testing:
    image: golang
    environment:
      GO111MODULES: on
    commands:
      - go version
      - go get
      - go build
      - golangci-lint run
      - go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
      - bash <(curl -s https://codecov.io/bash)
pipeline:
  testing:
    image: golang
    environment:
      GO111MODULES: on
    commands:
      - go version
      - go get
      - go build
      - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0
      - golangci-lint run
      - go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
      - bash <(curl -s https://codecov.io/bash)
Use CI installer for golangci-lint
Use CI installer for golangci-lint
