From 7a7905aa7d9014e25a9342fd76f3bca78cce8087 Mon Sep 17 00:00:00 2001
From: Bart Jaskulski <bjaskulski@protonmail.com>
Date: Wed, 6 Mar 2024 10:38:28 +0100
Subject: [PATCH] fix: skip codeception job for libraries

Libraries usually don't use codeception acceptance tests. This is
additionally implied by the misconfiguration of the job: codeception
test requires `prepare translations`, which is always disabled for
libraries. At the moment, simply skip any codecept jobs for
libraries.

Should acceptance tests be introduced to libraries, the whole
dependency graph of jobs should be redesigned.

Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com>
---
 includes/tests/codeception.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/includes/tests/codeception.yml b/includes/tests/codeception.yml
index b79751e..24916e2 100644
--- a/includes/tests/codeception.yml
+++ b/includes/tests/codeception.yml
@@ -35,6 +35,9 @@
       optional: true
     - job: prepare npm assets
       optional: true
+  rules:
+    - if: $IS_LIBRARY || $IS_NPM_LIBRARY
+      when: never
   except:
     variables:
       - $DISABLE_CODECEPTION
-- 
GitLab