diff --git a/.circleci/config.yml b/.circleci/config.yml index 88374f0..c2dbdb6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,8 +29,26 @@ jobs: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - run: yarn test:ci - - + db: + docker: + - image: cimg/node:12.18.4 + environment: + DATABASE_URL: postgres://logan:chucknorris@localhost:5432/dbCI + 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: logan + POSTGRES_DB: dbCI + POSTGRES_PASSWORD: chucknorris + steps: + - checkout + - restore_cache: + keys: + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - run: yarn test:e2e workflows: version : 2 @@ -41,5 +59,8 @@ workflows: requires: - build - test: + requires: + - build + - db: requires: - build \ No newline at end of file