version: 2
jobs:
  build:
    docker:
      - image: circleci/node:12.19
      - image: circleci/redis
    steps:
      - checkout
      - run: npm install -g npm@4.x.x
      - run: npm install -g typescript
      - run: ./bin/install-circleci
      - save_cache:
          key: node_modules_cache
          paths:
            - node_modules
            - packages/backend-api/node_modules
            - packages/config/node_modules
            - packages/frontend-web/node_modules
      - run:
          name: Drop the migrated DB, tests will generate their own
          command: mysqladmin -uroot drop circle_test -f
      - run:
          name: Create a new empty DB.
          command: mysqladmin -uroot create circle_test
      - run: ./bin/lint
      - run: ./bin/test-no-compile

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:12.19
      - image: circleci/redis
    steps:
      - checkout
      - run: ./bin/install-circleci
      - save_cache:
          key: node_modules_cache
          paths:
            - node_modules
            - packages/backend-api/node_modules
            - packages/config/node_modules
            - packages/frontend-web/node_modules
      - run:
          name: Drop the migrated DB, tests will generate their own
          command: mysqladmin -uroot drop circle_test -f
      - run:
          name: Create a new empty DB.
          command: mysqladmin -uroot create circle_test
      - run: ./bin/lint
      - run: ./bin/test-no-compile

Remove audited 802 packages in 3.483s
Remove audited 802 packages in 3.483s

10 packages are looking for funding
  run `npm fund` for details

found 971 vulnerabilities (951 low, 20 high)
  run `npm audit fix` to fix them, or `npm audit` for details commands
