From 792e81abb263b2992e248c58e841b388a7224a38 Mon Sep 17 00:00:00 2001 From: Francois Lannoy Date: Wed, 4 Nov 2020 18:19:17 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 37fb9e2..34c259d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,6 +9,9 @@ workflows: - test: requires: - build + - e2e: + requires: + - build jobs: build: @@ -40,4 +43,25 @@ jobs: - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} - run: yarn test:ci + e2e: + docker: + - image: cimg/node:12.18 + environment: + DATABASE_URL: "postgres://e2e:test@localhost:5432/psdb" + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + JWT_SECRET: yeet + - image: circleci/postgres:9.6.2-alpine + environment: + POSTGRES_USER: e2e + POSTGRES_DB: psdb + POSTGRES_PASSWORD: test + step: + - checkout + - restore_cache: + key: yarn-packages-v2{{ checksum "yarn.lock" }} + - run: dockerize -wait tcp://localhost:5432 -timeout 1m + - run: yarn test:e2e + \ No newline at end of file