version: 2

jobs:
  build:
    docker:
      - image: circleci/node:7.10

    working_directory: ~/repo

    branches:
      ignore:
        - gh-pages

    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-
      - run: npm i
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
      - run:
          name: lint
          command: npm run lint && npm run docs:lint
      - run:
          name: build
          command: npm run build
      - run:
          name: test
          command: npm run test:unit

version: 2

jobs:
  build:
    docker:
      - image: circleci/node:latest

    working_directory: ~/repo

    branches:
      ignore:
        - gh-pages

    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-
      - run: npm i
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
      - run:
          name: lint
          command: npm run lint && npm run docs:lint
      - run:
          name: build
          command: npm run build
      - run:
          name: test
          command: npm run test:unit

Revert "chore(ci): specify the version of node"
Revert "chore(ci): specify the version of node"

This reverts commit 0293ae01927bd1e046408412c82b2314114e4dd6.
