From 61c68d62971d9ccf80415415410c67e213c08018 Mon Sep 17 00:00:00 2001 From: "denisdalmeida04@gmail.com" Date: Tue, 3 Nov 2020 16:49:14 +0100 Subject: [PATCH] denisjunior Adding a end to end test step --- .circleci/config.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 677aad4..2e8eeb9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,7 +41,28 @@ jobs: - checkout - restore_cache: key: yarn-packages-{{ checksum "yarn.lock"}} - - run : yarn test:ci + - run : yarn test:ci + database: + docker: + - + image: "circleci/node:12" + environnement: + DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb + JWT_SECRET: some string yo want + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + - + image: "circleci/postgres:9.6.2-alpine" + environnement: + POSTGRES_USER: psqluser + POSTGRES_PASSWORD: psqlpassword + POSTGRES_DB: psdb + steps: + - checkout + - restore_cache: + key: yarn-packages-{{ checksum "yarn.lock"}} + - run : yarn test:e2e orbs: node: circleci/node@3.0.0 @@ -53,3 +74,4 @@ workflows: - install - lint - test + - database