diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d52457..8987fc7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,21 +52,22 @@ jobs: - ./node_modules database: - - image: circleci/postgres:9.6-alpine - steps: - - checkout - - restore_cache: - key: yarn-packages-v3{{ checksum "yarn.lock" }} - - run: yarn test:e2e - environment: - POSTGRES_USER: psqluer - POSTGRES_DB: psdb - DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb - JWT_SECRET: some string yo want - API_PORT: 3000 - API_HOST: localhost - API_PROTOCOL: http - - save_cache: - key: yarn-packages-v3{{ checksum "yarn.lock" }} - paths: - - ./node_modules \ No newline at end of file + docker: + - image: circleci/postgres:9.6-alpine + steps: + - checkout + - restore_cache: + key: yarn-packages-v3{{ checksum "yarn.lock" }} + - run: yarn test:e2e + environment: + POSTGRES_USER: psqluer + POSTGRES_DB: psdb + DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb + JWT_SECRET: some string yo want + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http + - save_cache: + key: yarn-packages-v3{{ checksum "yarn.lock" }} + paths: + - ./node_modules \ No newline at end of file