From ebab2401f3a6e55c0d64dd4924c33e822696b2ed Mon Sep 17 00:00:00 2001 From: Chiara Date: Thu, 5 Nov 2020 21:31:09 +0100 Subject: [PATCH] :sparkles: : postgres & e2e test --- .circleci/config.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a9d18c7..f85b653 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,7 @@ workflow: - build - lint - tu + - teste2e jobs: build: docker: @@ -36,3 +37,23 @@ jobs: - restore_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} - run: yarn test:ci + teste2e: + docker: + - image: cimg/node:14.10.1 + environment: + DATABASE_URL: postgres://root:chiara@localhost:5432/circle-test_test + JWT_SECRET: ok + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + - image: circleci/postgres:9.6.2-alpine + environment: + POSTGRES_USER: root + POSTGRES_BD: circle-test_test + POSTEGRES_PASSWORD: chiara + steps: + - checkout + - restore_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: + command: yarn test:e2e