From 5c5db3f364452feb1aa07d509245eda403283c13 Mon Sep 17 00:00:00 2001 From: Adrien-Ba <45963338+Adrien-Ba@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:57:52 +0200 Subject: [PATCH] Updated config.yml --- .circleci/config.yml | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 89ebf26..1f4a9d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,6 +61,33 @@ jobs: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} paths: - node_modules + bddtest: + docker: + - image: cimg/node:lts + auth: + username: adrienba + password: $MYDOCKERHUB_PASSWORD + environment: + TEST_DATABASE_URL: postgresql://root@localhost/circle_test + - image: circleci/postgres:9.6.5-alpine-ram + auth: + username: adrienba + password: $DOCKERHUB_PASSWORD + steps: + - checkout + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - npm-v1-dependencies + - run: + name: "yarn test:e2e" + command: yarn test:e2e + - save_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + paths: + - node_modules + + workflows: @@ -73,4 +100,9 @@ workflows: - yarntest: requires: - build - - yarnlint \ No newline at end of file + - yarnlint + - bddtest: + requires: + - build + - yarnlint + - yarntest \ No newline at end of file