From f1a095df624980acce833d6f0adfdd8c1b5e1348 Mon Sep 17 00:00:00 2001 From: Neel Coffin Date: Tue, 3 Nov 2020 11:58:33 +0100 Subject: [PATCH] add db --- .circleci/config.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dcde15a..c035e32 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,6 +43,20 @@ jobs: key: yarn-packages-v2{{ checksum "yarn.lock" }} paths: - ./node_modules + database: + docker: + - image: cimg/node:12.18 + environment: + DATABASE_URL: "postgres://psuser:pspwd@localhost:5432/psdb" + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + JWT_SECRET: something + - image: circleci/postgres:9.6.2-alpine + environment: + POSTGRES_USER: psuser + POSTGRES_DB: psdb + POSTGRES_PASSWORD: pspwd workflows: build_and_test: