From 6abaab929004b0a946926326eee5a5413a21746c Mon Sep 17 00:00:00 2001
From: Georg Krause <mail@georg-krause.net>
Date: Wed, 21 Jun 2023 10:04:50 +0200
Subject: [PATCH] ci: Only run integration test if explicitly requested

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/1795>
---
 .gitlab-ci.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6581c987c..2b32aa871 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -314,9 +314,13 @@ build_metadata:
       - docker-bake.front.json
 
 test_integration:
-  interruptible: true
   stage: test
-  image: cypress/base:16.14.2
+  rules:
+    - if: $RUN_CYPRESS
+  interruptible: true
+
+  image: cypress/base:18.12.1
+  cache: *front_cache
   before_script:
     - cd front
     - yarn install