From d3292dd4fc0ae5acf5e83809aff3dc4103269706 Mon Sep 17 00:00:00 2001 From: Louis Dutoit Date: Tue, 3 Nov 2020 15:12:28 +0100 Subject: [PATCH] fix e2e --- .circleci/config.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d546c8b..a76d1f6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,24 +35,26 @@ jobs: - run: yarn test:ci - e2etest: - docker: *shared_docker + bddPostgres: + docker: + - image: cimg/node:12.18.4 environment: - POSTGRES_USER: user_e2e - POSTGRES_DB: db + DATABASE_URL: postgres://psqluser:password@localhost:5432/psdb + JWT_SECRET: some string + API_HOST: localhost + API_PROTOCOL: http + API_PORT: 3000 + - image: circleci/postgres:9.6.2-alpine + environment: + POSTGRES_USER: psqluser + POSTGRES_DB: psdb POSTGRES_PASSWORD: password - steps: - - checkout - - restore_cache: - key: yarn-packages-v2{{ checksum "yarn.lock" }} - - run: - command: yarn test:e2e - environment: - DATABASE_URL: postgres://user_e2e:password@localhost:5432/db - API_PORT: 3000 - API_HOST: localhost - API_PROTOCOL: http - JWT_SECRET: secret + steps: + - checkout + - restore_cache: + keys: + - npm-v6-dependencies-{{ checksum "yarn.lock" }} + - run: yarn test:e2e workflows: version: 2