version: 2
jobs:
  test:
    working_directory: /go/src/github.com/goccy/go-yaml
    docker:
    - image: circleci/golang:1.15
      environment:
        GO111MODULE: "on"
    steps:
      - checkout
      - run:
          name: merge base branch
          command: |
            git pull origin master
      - run:
          name: Download modules
          command: |
            go mod download
      - run:
          name: Run unit tests and measure coverage
          command: |
            go test -v -coverprofile=coverage.out ./...
            bash <(curl -s https://codecov.io/bash) -P ${CIRCLE_PULL_REQUEST##*/}
workflows:
  version: 2
  test:
    jobs:
      - test

version: 2
jobs:
  test:
    working_directory: /go/src/github.com/goccy/go-yaml
    docker:
    - image: circleci/golang:1.15
      environment:
        GO111MODULE: "on"
    steps:
      - checkout
      - run:
          name: merge base branch
          command: |
            git remote add goccy https://github.com/goccy/go-yaml.git
            git pull goccy master
      - run:
          name: Download modules
          command: |
            go mod download
      - run:
          name: Run unit tests and measure coverage
          command: |
            go test -v -coverprofile=coverage.out ./...
            bash <(curl -s https://codecov.io/bash) -P ${CIRCLE_PULL_REQUEST##*/}
workflows:
  version: 2
  test:
    jobs:
      - test

Fix remote repository for pulling
Fix remote repository for pulling
