From 5052e91221a25a386ff49460a3a456f1ae9938f2 Mon Sep 17 00:00:00 2001 From: Galimede Date: Mon, 2 Nov 2020 15:59:07 +0100 Subject: [PATCH] try with db in build --- .circleci/config.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2c63e67..09efd47 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,12 @@ jobs: build: docker: - image: cimg/node:14.10.1 + - image: circleci/postgres:latest + environment: + POSTGRES_USER: e2e + POSTGRES_DB: psdb + POSTGRES_PASSWORD: password + steps: - checkout - restore_cache: @@ -28,15 +34,10 @@ jobs: - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} - run : yarn test:ci - test_e2e: - docker: + test_e2e: + docker: - image: cimg/node:14.10.1 - - image: circleci/postgres:latest - environment: - POSTGRES_USER: e2e - POSTGRES_DB: psdb - POSTGRES_PASSWORD: password - steps: + steps: - checkout - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }}