From 17d4f374154719cb7b2b862503b31f28be8778dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20GAUTREAU?= Date: Mon, 2 Nov 2020 11:55:55 +0100 Subject: [PATCH] :sparkles: : add e2e test --- .circleci/config.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 20c1273..7f9b8ef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,6 +10,9 @@ workflows: - test: requires: - yarn + - e2e-test: + requires: + - yarn jobs: yarn: @@ -46,4 +49,20 @@ jobs: - restore_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} - - run: yarn test:ci \ No newline at end of file + - run: yarn test:ci + + e2e-test: + docker: + - image: cimg/node:14.10.1 + environment: + DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb + JWT_SECRET: ARMA, l'eau de combat + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + steps: + - checkout + - restore_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + + - run: yarn test:e2e \ No newline at end of file