From c1463afbf7e5a9d2958e3eaf404129b42e38e706 Mon Sep 17 00:00:00 2001 From: nod_ Date: Tue, 20 Aug 2024 10:36:50 +0200 Subject: [PATCH] Issue #3468848 by catch: Allow child jobs to run as soon as phpcs and spellcheck are completed --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 290a5d0d19c..4638dc72c43 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,8 @@ ################ workflow: + auto_cancel: + on_job_failure: all rules: # These 3 rules from https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Workflows/MergeRequest-Pipelines.gitlab-ci.yml # Run on merge requests @@ -144,6 +146,11 @@ default: .default-stage: &default-stage stage: ๐Ÿ—œ๏ธ Test + needs: + # Start the child jobs as soon as phpcs passes. + - "๐Ÿงน PHP Coding standards (PHPCS)" + - "๐Ÿ“” Spell-checking" + trigger: # Rely on the status of the child pipeline. strategy: depend