version: 2
jobs:
  build:
    working_directory: ~/dash-button
    docker:
      - image: circleci/node:10
    steps:
      - checkout
      - run:
          name: Install apt Packages
          command: sudo apt-get --yes install libpcap-dev
      - restore_cache:
          key: v2-yarn-cache
      - run:
          name: Install npm Packages
          command: yarn --pure-lockfile
      - save_cache:
          key: v2-yarn-cache
          paths:
            - ~/.cache/yarn
      - run:
          name: Lint
          command: yarn lint
      - run:
          name: Run Flow Checks
          command: yarn flow -- check
      - run:
          name: Run Tests
          command: yarn test -- --coverage
      - run:
          name: Upload results to Codecov
          command: bash <(curl -s https://codecov.io/bash)

version: 2
jobs:
  build:
    working_directory: ~/dash-button
    docker:
      - image: circleci/node:10
    steps:
      - checkout
      - run:
          name: Install apt Packages
          command: sudo apt-get --yes install libpcap-dev
      - restore_cache:
          key: v2-yarn-cache
      - run:
          name: Install npm Packages
          command: yarn --pure-lockfile
      - save_cache:
          key: v2-yarn-cache
          paths:
            - ~/.cache/yarn
      - run:
          name: Lint
          command: yarn lint
      - run:
          name: Run Tests
          command: yarn test -- --coverage
      - run:
          name: Upload results to Codecov
          command: bash <(curl -s https://codecov.io/bash)

Remove Flow checks from CI (moved to TS)
[ci] Remove Flow checks from CI (moved to TS)
