From a9576897ea737c0e56a5a478a5fff349833066e5 Mon Sep 17 00:00:00 2001
From: Christophe Chaudier <christophe@lydra.fr>
Date: Wed, 1 Feb 2023 11:13:03 +0000
Subject: [PATCH] fix: runner purge the CI cache

---
 .gitlab-ci.yml | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d87d846..7b9c814 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,8 @@
 image: node:16.14.2-slim
 
+include:
+  - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
+
 stages:
   - build
   - 🧪 test
@@ -13,14 +16,8 @@ variables:
   tags:
     - cache
   cache:
-    key:
-      files:
-        - package-lock.json
     paths:
       - node_modules/
-  rules:
-    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-    - if: $CI_MERGE_REQUEST_IID
 
 .cache-push:
   extends: .cache
@@ -37,9 +34,6 @@ install_dependencies:
   stage: build
   script:
     - npm ci
-  rules:
-    - changes:
-        - package-lock.json
 
 lint:
   extends: .cache-pull
-- 
GitLab