Fix the YAML syntax in include.drupalci.main.yml

Created on 7 August 2025, 23 days ago

Problem/Motivation

As per https://docs.gitlab.com/ci/jobs/job_rules/ exists has the same level as if or when
Given that the following should be corrected.

diff --git a/includes/include.drupalci.main.yml b/includes/include.drupalci.main.yml
index ed7ee47..55851a9 100644
--- a/includes/include.drupalci.main.yml
+++ b/includes/include.drupalci.main.yml
@@ -331,9 +331,9 @@
   when: never
 
 .phpunit-tests-exist-rule: &phpunit-tests-exist-rule
-  - exists:
-      - '**/tests/**/*Test.php'
-    when: on_success
+  exists:
+    - '**/tests/**/*Test.php'
+  when: on_success
 
 .nightwatch-tests-exist-rule: &nightwatch-tests-exist-rule
   - exists:

Steps to reproduce

Try to enable any job with *phpunit-tests-exist-rule or *nightwatch-tests-exist-rule
and pipeline givesa syntax error

Proposed resolution

Fix the YAML syntax.

Remaining tasks

Review the PR and test it locally.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Component

gitlab-ci

Created by

🇨🇦Canada jibran Toronto, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024