version: 2

workflows:
  version: 2
  test:
    jobs:
      - test-node-8
      - test-node-12

jobs:
  test-node-8:
    docker:
      - image: circleci/node:8-browsers
    steps:
      - checkout
      - run:
          name: Install deps via yarn
          command: yarn install
      - run:
          name: Run tests
          command: yarn test
  test-node-12:
    docker:
      - image: circleci/node:8-browsers
    steps:
      - checkout
      - run:
          name: Install deps via yarn
          command: yarn install
      - run:
          name: Run tests
          command: yarn test
