From 77e62fc62cb0c1343b9200371e6cd83e8b7a4eba Mon Sep 17 00:00:00 2001 From: Tarskan <55380090+Tarskan@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:17:29 +0200 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e8f3471..63adc5d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,6 +9,10 @@ workflows: - job3: requires: - build + - DATABASETest: + requires: + - job2 + - job3 version: 2.1 jobs: @@ -38,6 +42,7 @@ jobs: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} paths: - node_modules + job2: docker: - image: cimg/node:14.15.0 # the primary container, where your job's commands are run @@ -50,6 +55,7 @@ jobs: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} - run: yarn lint - run: yarn format:check + job3: docker: - image: cimg/node:14.15.0 # the primary container, where your job's commands are run @@ -60,4 +66,18 @@ jobs: - checkout - restore_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} - - run: yarn test \ No newline at end of file + - run: yarn test + + DATABASETest : + - image: circleci/postgres:9.6-alpine + auth: + username: $AUTH_DOCKER + password: $PSW_DOCKER # context / project UI env-var reference + environment: + POSTGRES_USER: root + POSTGRES_DB: test + steps: + - checkout + - restore_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn test:e2e \ No newline at end of file