var_1: &docker_image circleci/node:8-browsers

anchor_1: &job_defaults
  working_directory: ~/workspace
  docker:
    - image: *docker_image

version: 2
jobs:
  build_and_test:
    <<: *job_defaults
    steps:
      - checkout
      - run: node --version
      - run: npm --version
      - run: npm install
      - run: npm run format-enforce
      - run: npm run test-unit

workflows:
  version: 2
  default_workflow:
    jobs:
      - build_and_test