diff --git a/.circleci/config.yml b/.circleci/config.yml index d546c8b..a76d1f6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,24 +35,26 @@ jobs: - run: yarn test:ci - e2etest: - docker: *shared_docker + bddPostgres: + docker: + - image: cimg/node:12.18.4 environment: - POSTGRES_USER: user_e2e - POSTGRES_DB: db + DATABASE_URL: postgres://psqluser:password@localhost:5432/psdb + JWT_SECRET: some string + API_HOST: localhost + API_PROTOCOL: http + API_PORT: 3000 + - image: circleci/postgres:9.6.2-alpine + environment: + POSTGRES_USER: psqluser + POSTGRES_DB: psdb POSTGRES_PASSWORD: password - steps: - - checkout - - restore_cache: - key: yarn-packages-v2{{ checksum "yarn.lock" }} - - run: - command: yarn test:e2e - environment: - DATABASE_URL: postgres://user_e2e:password@localhost:5432/db - API_PORT: 3000 - API_HOST: localhost - API_PROTOCOL: http - JWT_SECRET: secret + steps: + - checkout + - restore_cache: + keys: + - npm-v6-dependencies-{{ checksum "yarn.lock" }} + - run: yarn test:e2e workflows: version: 2