From 3113607e0a9bab599430f4e9519584cddd67530d Mon Sep 17 00:00:00 2001 From: Alexandre SOARES <72209227+AS-37@users.noreply.github.com> Date: Sat, 15 Jan 2022 13:13:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a2e7429..50b38e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,29 +1,24 @@ jobs: build: docker: - - - auth: + - auth: password: $DOCKERHUB_PASSWORD username: xaela37 image: "cimg/node:14.15.0" steps: - checkout - - - run: "yarn install" - - - save_cache: + - run: "yarn install" + - save_cache: key: "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}" paths: - node_modules end_to_end: docker: - - - auth: + - auth: password: $DOCKERHUB_PASSWORD username: xaela37 image: "cimg/node:14.15.0" - - - auth: + - auth: password: $DOCKERHUB_PASSWORD username: xaela37 environment: @@ -33,38 +28,32 @@ jobs: image: "circleci/postgres:9.6.2-alpine" steps: - checkout - - - restore_cache: + - restore_cache: keys: - "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}" - - - run: + - run: command: "yarn test:e2e" environment: DATABASE_URL: "postgres://pguser:pass@localhost:5432/pgdb" name: "yarn test" lint: docker: - - - auth: + - auth: password: $DOCKERHUB_PASSWORD username: xaela37 image: "cimg/node:14.15.0" steps: - checkout - - - restore_cache: + - restore_cache: key: "npm-v1-dependencies-{{ checksum \"yarn.lock\" }}" - - - run: + - run: command: |- yarn lint yarn format:check name: "step lint" test_unit: docker: - - - auth: + - auth: password: $DOCKERHUB_PASSWORD username: xaela37 image: "cimg/node:14.15.0"