From 1041b80989c5602f3fccc8228e97b24c845f3332 Mon Sep 17 00:00:00 2001 From: Straw-Etiam Date: Tue, 3 Nov 2020 21:10:43 +0100 Subject: [PATCH] db --- .circleci/config.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 968c5cf..9d75cf0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,6 +8,7 @@ workflows: - install_yarn - lint - test + -db jobs: @@ -56,6 +57,29 @@ jobs: - restore_cache: key: yarn-packages-{{ checksum "yarn.lock" }} - run: yarn test:ci + + + + db: + docker: + - image: circleci/node:12 + environment: + DATABASE_URL: postgres://psqluser:psqlpassword@localhost:5432/psdb + JWT_SECRET: hi + 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: + - checkout + - restore_cache: + key: yarn-packages-{{ checksum "yarn.lock" }} + - run: yarn test:e2e +