From 3264b9b7071dab3c124bc3a9218e025e6756497d Mon Sep 17 00:00:00 2001 From: Neel Coffin Date: Mon, 2 Nov 2020 12:06:07 +0100 Subject: [PATCH] try new config database --- .circleci/config.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 829a9a6..d0b6c1c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,20 +45,22 @@ jobs: paths: - ./node_modules - test_e2e: - docker: - - image: postgres:9.6-jessie + database: + docker: + - image: circleci/postgres:9.6.2-alpine environment: - POSTGRES_USER: e2e + POSTGRES_USER: psqluser + POSTGRES_PASSWORD: psqlpassword POSTGRES_DB: psdb - steps: - - run: - command: yarn test:e2e - environment: - DATABASE_URL: postgres://$POSTGRES_USER@localhost:5432/$POSTGRES_DB - API_PORT: 3000 - API_HOST: localhost - API_PROTOCOL: http + steps: + - checkout + - run: + command: yarn test:e2e + environment: + DATABASE_URL: postgres://$POSTGRES_USER@localhost:5432/$POSTGRES_DB + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http workflows: