From 34f0fba13a701786061a38aef02b2edf204d2f44 Mon Sep 17 00:00:00 2001 From: Galimede Date: Mon, 2 Nov 2020 17:06:12 +0100 Subject: [PATCH] try another env method --- .circleci/config.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fab16fd..c602962 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,6 +31,12 @@ jobs: test_e2e: docker: - image: cimg/node:14.10.1 + environment: + DATABASE_URL: "postgres://e2e:test@localhost:5432/psdb" + API_PORT: 3000 + API_HOST: "localhost" + API_PROTOCOL: "http" + JWT_SECRET: "youwontguess" - image: circleci/postgres environment: POSTGRES_USER: e2e @@ -40,18 +46,10 @@ jobs: - checkout - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} - - run: - name: Waiting for POSTGRES - command: dockerize -wait tcp://localhost:5432 -timeout 1m - run: name: Launching e2e test command: yarn test:e2e - environment: - DATABASE_URL: "postgres://e2e:test@localhost:5432/psdb" - API_PORT: 3000 - API_HOST: "localhost" - API_PROTOCOL: "http" - JWT_SECRET: "youwontguess" + workflows: build_and_test: