diff --git a/.circleci/config.yml b/.circleci/config.yml index d0024f7..33150bf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,6 +44,20 @@ jobs: key: yarn-packages-v2{{ checksum "yarn.lock" }} paths: - ./node_modules + database: + docker: + - image: circleci/node:12 + environment: + DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb + JWT_SECRET: some string yo want + 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 workflows: build_and_test: