From 2748843ab79dd18a05c695042741529b19d50742 Mon Sep 17 00:00:00 2001 From: HenriBoulnois <72384047+HenriBoulnois@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:00:54 +0200 Subject: [PATCH] Updated config.yml --- .circleci/config.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4eb6c77..2afb211 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,6 +52,29 @@ jobs: paths: - node_modules key: npm-v2-dependencies-{{ checksum "yarn.lock" }} + e2etest: + docker: + - image: cimg/node:lts + auth: + username: henriboulnois + password: $DOCKERHUB_PASSWORD + environment: + TEST_DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb + - image: circleci/postgres:9.6.5-alpine-ram + auth: + username: mydockerhub-user + password: $DOCKERHUB_PASSWORD + steps: + - checkout + - restore_cache: + keys: + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - npm-v2-dependencies + - run: yarn test:e2e + - save_cache: + paths: + - node_modules + key: npm-v2-dependencies-{{ checksum "yarn.lock" }} workflows: build: @@ -63,4 +86,9 @@ workflows: - unittest: requires: - yarninstall - - yarnlint \ No newline at end of file + - yarnlint + - e2etest: + requires: + - yarninstall + - yarnlint + - unittest \ No newline at end of file