diff --git a/gitlab-ci-1.2.yml b/gitlab-ci-1.2.yml index 869dd1ff1c417224fed066a6324dfd411c580334..626a91686cc8afd583ab23bc5b616c47eb048240 100644 --- a/gitlab-ci-1.2.yml +++ b/gitlab-ci-1.2.yml @@ -1,5 +1,5 @@ variables: - WPDESK_CI_VERSION: "2023.11.17" + WPDESK_CI_VERSION: "2023.11.20" MYSQL_ROOT_PASSWORD: "mysql" MYSQL_DATABASE: "wptest" MYSQL_USER: "mysql" @@ -43,3 +43,4 @@ include: - '/includes/deploy.yml' - '/includes/pages.yml' - '/includes/mixins/.after-codeception.yml' + - '/includes/mixins/.skip-mr.yml' diff --git a/includes/mixins/.skip-mr.yml b/includes/mixins/.skip-mr.yml new file mode 100644 index 0000000000000000000000000000000000000000..292772c0353105a5b1c5cf527443707e01dd40c6 --- /dev/null +++ b/includes/mixins/.skip-mr.yml @@ -0,0 +1,4 @@ +.skip-mr: + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + when: never diff --git a/includes/tests/static-analysis.yml b/includes/tests/static-analysis.yml index 9f80e9adf31957bc9bfb40dceb1624897fd26307..34bab65a787ccbca61d8adea2519b35d48e8e470 100644 --- a/includes/tests/static-analysis.yml +++ b/includes/tests/static-analysis.yml @@ -3,6 +3,7 @@ needs: - prepare prefixed vendor stage: tests + extends: .skip-mr # Run phpstan in strict mode (failing pipeline) only if we have baseline, otherwise allow to fail with a warning, suggesting to create one. This behavior will change at the end of the year, when any PHPStan failure will be considered fatal phpstan: