From 0bc1c08c078ceb5e3477c70936b73f72392ee58d Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 15 Jan 2020 20:32:04 +0300 Subject: [PATCH] Cache all workspaces --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 13c79de..7d1ed8f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,6 +38,7 @@ stages: paths: - node_modules - packages/*/node_modules + - tests-e2e/node_modules # Keep this node_modules because it's one of workspaces policy: pull .yarnE2ECache: @@ -64,7 +65,7 @@ Yarn: variables: CYPRESS_INSTALL_BINARY: 0 # Don't install binary to increase caching performance between jobs script: - - yarn install --frozen-lockfile --cache-folder ~/.cache/yarn + - yarn install --frozen-lockfile Yarn E2E: stage: prepare @@ -74,7 +75,7 @@ Yarn E2E: cache: policy: pull-push script: - - yarn install --frozen-lockfile --cache-folder ~/.cache/yarn + - yarn install --frozen-lockfile only: refs: - master