From 034b4718a541c4bd77feffa61027ccdaaf5672d5 Mon Sep 17 00:00:00 2001 From: Alexandre SOARES <72209227+AS-37@users.noreply.github.com> Date: Sat, 15 Jan 2022 15:42:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fixed=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 588401b..b2ea604 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,29 +28,22 @@ jobs: command: yarn test end_to_end: - docker: - - auth: - password: $DOCKERHUB_PASSWORD - username: xaela37 - image: circleci/node:lts-fermium - - auth: - password: $DOCKERHUB_PASSWORD - username: xaela37 - environment: - POSTGRES_DB: pgdb - POSTGRES_PASSWORD: pass - POSTGRES_USER: pguser - image: "circleci/postgres:9.6.2-alpine" - steps: + docker: + - image: circleci/node:lts-fermium + - image: circleci/postgres:9.6.5 + environment: + POSTGRES_DB: psqluer + POSTGRES_USER: psqluer + POSTGRES_PASSWORD: psqlpassword + working_directory: ~/repo + steps: - checkout - - restore_cache: - keys: - - "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}" - - run: - command: "yarn test:e2e" - environment: - DATABASE_URL: "postgres://pguser:pass@localhost:5432/pgdb" - name: "yarn test" + - restore_cache: + key: dependencies-{{ checksum "package.json" }}-v1 + - run: + command: yarn test:e2e + environment: + DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psqluer lint: docker: - auth: