From 5f9c1240be7411571b79d6a265c08f5ee720f659 Mon Sep 17 00:00:00 2001 From: guidezSeb Date: Mon, 2 Nov 2020 11:50:51 +0100 Subject: [PATCH] step 4 test bdd --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9dd9fd9..9c67e58 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,6 +7,17 @@ jobs: build: # name of your job docker: - image: cimg/node:14.10.1 + environment: + DATABASE_URL: postgresql://root@localhost/circle_test + JWT_SECRET: something + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + - image: 'circleci/postgres:9.6.2-alpine' + environment: + POSTGRES_USER: psqluser + POSTGRES_PASSWORD: psqlpassword + POSTGRES_DB: psdb steps: # Commands are run in a Windows virtual machine environment @@ -18,6 +29,7 @@ jobs: - run: yarn lint - run: yarn format:check - run: yarn test:ci + - run: yarn test:e2e - save_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} paths: