From 617019a023a3ab8d839e1de07b452d3ab8bfe5e0 Mon Sep 17 00:00:00 2001 From: ndrg13 <72130242+ndrg13@users.noreply.github.com> Date: Thu, 5 Nov 2020 18:26:38 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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