version: 2
jobs:
  build:
    docker:
      - image: node:10
    steps:
      - checkout
      - run:
          name: dep install
          command: npm install
      - run:
          name: install codecov
          command: npm install -g codecov
      - run:
          name: test
          command: npm test && codecov
