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" }}