From 420fe10a9e425be3a8e011ea6904748e25c890f1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 23 Aug 2022 20:09:29 +0200 Subject: [PATCH] Moved cache generation into if clause --- .gitlab-ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a9d43bd..b67af9d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,10 +15,13 @@ cache: - frontend/node_modules before_script: - - yarn install - - cd frontend - - yarn install - - cd .. + - > + if [ ! -d "node_modules" ]; then + yarn install + cd frontend + yarn install + cd .. + fi test_backend: stage: test