Skip to content
Snippets Groups Projects
Verified Commit e961cc4b authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: skip static checks for MR pipelines


GitLab way of running MR pipelines results in our jobs requiring
undefined dependencies (`phpcs` requires `prepare vendor prefixed`).
Everything works properly for regular branch and tag pipelines, but
merge requests are triggering error or invalid YAML.

Simply, disable those jobs in CI.

Signed-off-by: default avatarBart Jaskulski <bjaskulski@protonmail.com>
parent 59a768c8
No related branches found
No related tags found
No related merge requests found
variables: variables:
WPDESK_CI_VERSION: "2023.11.17" WPDESK_CI_VERSION: "2023.11.20"
MYSQL_ROOT_PASSWORD: "mysql" MYSQL_ROOT_PASSWORD: "mysql"
MYSQL_DATABASE: "wptest" MYSQL_DATABASE: "wptest"
MYSQL_USER: "mysql" MYSQL_USER: "mysql"
...@@ -43,3 +43,4 @@ include: ...@@ -43,3 +43,4 @@ include:
- '/includes/deploy.yml' - '/includes/deploy.yml'
- '/includes/pages.yml' - '/includes/pages.yml'
- '/includes/mixins/.after-codeception.yml' - '/includes/mixins/.after-codeception.yml'
- '/includes/mixins/.skip-mr.yml'
.skip-mr:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: never
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
needs: needs:
- prepare prefixed vendor - prepare prefixed vendor
stage: tests 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 # 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: phpstan:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment