From 1f532bc4226a4a5daca905ddf19433d049669128 Mon Sep 17 00:00:00 2001 From: pierre darcas Date: Tue, 3 Nov 2020 15:59:04 +0100 Subject: [PATCH] e2e --- .circleci/config.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a2776c7..fdaefe6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,7 +51,26 @@ jobs: key: yarn-v1-packages-{{ checksum "yarn.lock" }} paths: - ./node_modules - + test_e2e: + docker: + - image: "circleci/node:12" # the primary container, where your job's commands are run + steps: + - checkout # check out the code in the project directory + - restore_cache: + key: yarn-v1-packages-{{ checksum "yarn.lock" }} + - run: + command: yarn test:e2e + environement: + DATABASE_URL: postgres://pdarcas:pdarcas@localhost:5432/circleci_tp + JWT_SECRET: answer is 42 + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + - save_cache: + key: yarn-v1-packages-{{ checksum "yarn.lock" }} + paths: + - ./node_modules + workflows: build: jobs: @@ -65,4 +84,7 @@ workflows: - database: requires: - build + - test_e2e: + requires: + - database