machine:
  environment:
    PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"

dependencies:
  override:
    - yarn

  cache_directories:
    - ~/.cache/yarn

test:
  pre:
    - yarn lint

  override:
    - yarn test

machine:
  node:
    version: 6.11.3

  environment:
    PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"

dependencies:
  override:
    - yarn

  cache_directories:
    - ~/.cache/yarn

test:
  pre:
    - yarn lint

  override:
    - yarn test

Set node version on CircleCI
Set node version on CircleCI
