# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
  build:
    docker:
      # See https://circleci.com/docs/2.0/circleci-images/
      - image: circleci/golang:1.13
      - image: circleci/redis:5.0
      - image: couchdb:2.3.1
    steps:
      - checkout
      - run:
          name: lint
          command: |
            curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.21.0
            sudo cp ./bin/golangci-lint $GOPATH/bin/
            golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace
      - run: gotestsum

# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
  build:
    docker:
      # See https://circleci.com/docs/2.0/circleci-images/
      - image: circleci/golang:1.13
      - image: circleci/redis:5.0
      - image: couchdb:2.3.1
    steps:
      - checkout
      - run:
          name: lint
          command: |
            curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.21.0
            sudo cp ./bin/golangci-lint $GOPATH/bin/
            golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace
      - run: go test -timeout 2m ./...

Use go test instead of gotestsum on CircleCI
Use go test instead of gotestsum on CircleCI
