diff --git a/.circleci/config.yml b/.circleci/config.yml index 95c2d98..009e2a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,11 +1,17 @@ version: 2.1 executors: - node-executor: - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_LOGIN - password: $DOCKERHUB_PASSWORD + - node-executor: + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_LOGIN + password: $DOCKERHUB_PASSWORD + - postgresql-executor: + docker: + - image: circleci/postgres + auth: + username: $DOCKERHUB_LOGIN + password: $DOCKERHUB_PASSWORD jobs: build: executor: node-executor @@ -36,6 +42,9 @@ jobs: - restore_cache: name: Restore yarn package cache key: npm-v7-dependencies-{{ checksum "yarn.lock" }} + - run: + name: Start PostgreSQL database + command: - run: name: Run test with jest command: yarn test:ci