From e5f34d34a71724fc3cf73d579f6692c79f25e9a4 Mon Sep 17 00:00:00 2001 From: Thaisrr <46489998+Thaisrr@users.noreply.github.com> Date: Mon, 2 Nov 2020 12:04:44 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9b4c65e..42417a1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,6 +10,8 @@ workflows: - tests: requires: - install + - database: + requires: install jobs: hello: docker: @@ -53,3 +55,21 @@ jobs: key: yarn-packages-{{ checksum "yarn.lock" }} paths: - ./node_modules + database: + docker: + - image: cimh/node:14.10.1 + environment: + DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb + JWT_SECRET: blah blah blah + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + - image: 'circleci/postgres:9.6.2-alpine' + environment: + POSTGRES_USER: psqluer + POSTGRES_PASSWORD: psqlpassword + POSTGRES_DB: psdb + steps: + - checkout + - restore_cache: + key: yarn-packages-{{ checksum "yarn.lock" }}