# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/node:14.18

    working_directory: ~/audius-hedgehog

    steps:
      - checkout
      - run: npm install
      - run:
          name: run lint
          command: npm run lint
      - run:
          name: run typecheck
          command: npm run typecheck
      - run:
          name: run tests
          command: npm run test
      - run:
          name: run build
          command: npm run build

workflows:
  version: 2
  build_pr:
    jobs:
      - build
