From a2771de183f18cd52a6a328e3becf1d4ba029a3e Mon Sep 17 00:00:00 2001 From: Gautier couture <2017566295@lacatholille.fr> Date: Mon, 2 Nov 2020 11:05:36 +0100 Subject: [PATCH] fix db --- .circleci/config.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e80c007..863516b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,12 +5,7 @@ jobs: docker: - image: cimg/node:14.10.1 - image: circleci/postgres:9.6.2-alpine - environment: - DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb - JWT_SECRET: coucou - API_PORT: 3000 - API_HOST: localhost - API_PROTOCOL: http + steps: - checkout - restore_cache: @@ -20,7 +15,15 @@ jobs: - run: yarn lint - run: yarn format:check - run: yarn test:ci - - run: yarn test:e2e + - run: + name: "database" + command: yarn test:e2e + environment: + DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb + JWT_SECRET: coucou + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http - save_cache: key: yarn-packages-{{ checksum "yarn.lock" }} paths: