From cea5e18bd7f4023b34f87f2af5d424669c03e867 Mon Sep 17 00:00:00 2001 From: Galimede Date: Mon, 2 Nov 2020 11:54:37 +0100 Subject: [PATCH] add test_e2e --- .circleci/config.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index def4126..8696cfa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,6 +28,24 @@ jobs: - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} - run : yarn test:ci + test_e2e: + docker: + - image: cimg/node:14.10.1 + - image: postgres:9.6-jessie + environment: + POSTGRES_USER: e2e + POSTGRES_DB: psdb + steps: + - checkout + - restore_cache: + key: yarn-packages-v2{{ checksum "yarn.lock" }} + - 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: build_and_test: jobs: @@ -36,5 +54,8 @@ workflows: requires: - build - test: + requires: + - build + - test_e2e: requires: - build \ No newline at end of file