From de375d75c7af2af752972661fb4f25359596944a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anthony=20Qu=C3=A9r=C3=A9?= <47711333+Anthony-Jhoiro@users.noreply.github.com> Date: Tue, 12 Oct 2021 18:02:48 +0200 Subject: [PATCH] Updated config.yml --- .circleci/config.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index aafe47f..abd02c6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,9 +6,9 @@ globals: username: anthonyjhoiro password: $DOCKERHUB_PASSWORD - setup: &setup - - checkout - - restore_cache: + setup: + - &install-cache + restore_cache: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} @@ -19,7 +19,8 @@ jobs: docker: - *docker-config steps: - <<: *setup + - checkout + - *install-cache - run: name: Install deps using Yarn command: yarn install @@ -34,7 +35,8 @@ jobs: docker: - *docker-config steps: - <<: *setup + - checkout + - *install-cache - restore_cache: keys: - npm-v1-lint-{{ .BuildNum }} @@ -55,7 +57,8 @@ jobs: docker: - *docker-config steps: - <<: *setup + - checkout + - *install-cache - run: name: Unit Tests command: yarn test @@ -71,7 +74,8 @@ jobs: POSTGRES_PASSWORD: postgres POSTGRES_DB: psdb steps: - <<: *setup + - checkout + - *install-cache - run: name: Run e2e tests @@ -84,7 +88,8 @@ jobs: - *docker-config steps: - <<: *setup + - checkout + - *install-cache - restore_cache: keys: - npm-v1-lint-{{ .BuildNum }} @@ -100,7 +105,8 @@ jobs: - *docker-config steps: - <<: *setup + - checkout + - *install-cache - setup_remote_docker - run: name: Build and Push docker image