From 24c7177df1ecbe40c87ea0efdd811577679c1bc4 Mon Sep 17 00:00:00 2001 From: MTLantoine Date: Wed, 4 Nov 2020 18:46:55 +0100 Subject: [PATCH] e2etest --- .circleci/config.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index aafff9b..a978ef2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,12 +27,29 @@ jobs: test: docker: *shared_docker steps: - - checkout # check out the code in the project directory + - checkout - restore_cache: keys: - npm-v2-dependencies-{{ checksum "yarn.lock" }} - run: yarn test:ci + e2etest: + docker: + - image: circleci/node:12 + - image: circleci/postgres:9.6-alpine + environment: + DATABASE_URL: postgres://antoine_mortelier:psqlpassword@localhost:5432/psdb + JWT_SECRET: some string yo want + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + steps: + - checkout + - restore_cache: + keys: + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - run: yarn test:e2e + workflows: version: 2 @@ -43,5 +60,8 @@ workflows: requires: - build - test: + requires: + - build + - e2etest: requires: - build \ No newline at end of file