diff --git a/.circleci/config.yml b/.circleci/config.yml index 11aa9a6..829a9a6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,30 +45,20 @@ jobs: paths: - ./node_modules - database: - docker: - - image: circleci/postgres:9.6.2-alpine + test_e2e: + docker: + - image: postgres:9.6-jessie environment: - POSTGRES_USER: psqluser - POSTGRES_PASSWORD: psqlpassword + POSTGRES_USER: e2e POSTGRES_DB: psdb - steps: - - checkout - - restore_cache: - name: restore yarn package cache - key: yarn-packages-v2{{ checksum "yarn.lock" }} - - run: - command: yarn test:e2e - environment: - DATABASE_URL: postgres://$POSTGRES_USER@localhost:5432/$POSTGRES_DB - API_PORT: 3000 - API_HOST: localhost - API_PROTOCOL: http - - save_cache: - name: save yarn package cache - key: yarn-packages-v2{{ checksum "yarn.lock" }} - paths: - - ./node_modules + steps: + - run: + command: yarn test:e2e + environment: + DATABASE_URL: postgres://$POSTGRES_USER@localhost:5432/$POSTGRES_DB + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http workflows: