From 347b8cb5f7385d3ba08a3ca973b0b2d7c68f2337 Mon Sep 17 00:00:00 2001 From: Logan Date: Thu, 5 Nov 2020 19:20:04 +0100 Subject: [PATCH] Adding a end to end test step --- .circleci/config.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 88374f0..c2dbdb6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,8 +29,26 @@ jobs: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - run: yarn test:ci - - + db: + docker: + - image: cimg/node:12.18.4 + environment: + DATABASE_URL: postgres://logan:chucknorris@localhost:5432/dbCI + JWT_SECRET: some string yo want + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + - image: circleci/postgres:9.6.2-alpine + environment: + POSTGRES_USER: logan + POSTGRES_DB: dbCI + POSTGRES_PASSWORD: chucknorris + steps: + - checkout + - restore_cache: + keys: + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - run: yarn test:e2e workflows: version : 2 @@ -41,5 +59,8 @@ workflows: requires: - build - test: + requires: + - build + - db: requires: - build \ No newline at end of file