diff --git a/.base.yml b/.base.yml index 37b0f97..5ecaeff 100644 --- a/.base.yml +++ b/.base.yml @@ -36,10 +36,13 @@ stages: .base-analyse: stage: analyse extends: .feature-branches - except: - - schedules - - pipelines - - tags + rules: + - if: '$CI_PIPELINE_SOURCE == "schedule"' + when: never + - if: '$CI_PIPELINE_SOURCE == "pipeline"' + when: never + - if: '$CI_COMMIT_TAG' + when: never #----------------------------------------------------------------------------------------------------------------------- # BUILD diff --git a/analyse/analyse-composer-lint.yml b/analyse/analyse-composer-lint.yml index 53529e3..fd31bec 100644 --- a/analyse/analyse-composer-lint.yml +++ b/analyse/analyse-composer-lint.yml @@ -7,5 +7,9 @@ analyse:composer:lint: needs: [ "build:php" ] extends: .base-analyse + rules: + - changes: + - "**/composer.json" + - "**/composer.lock" script: - composer run composer:normalize:check -d ${PATH_APP_DIR} diff --git a/analyse/analyse-php-cs-fixer.yml b/analyse/analyse-php-cs-fixer.yml index 10e0ae4..649e4a7 100644 --- a/analyse/analyse-php-cs-fixer.yml +++ b/analyse/analyse-php-cs-fixer.yml @@ -7,5 +7,8 @@ analyse:php:cs-fixer: needs: [ "build:php" ] extends: .base-analyse + rules: + - changes: + - "**/*.php" script: - composer run php:cs-fixer:check -d ${PATH_APP_DIR} diff --git a/analyse/analyse-php-lint.yml b/analyse/analyse-php-lint.yml index 6715194..fc12557 100644 --- a/analyse/analyse-php-lint.yml +++ b/analyse/analyse-php-lint.yml @@ -7,5 +7,8 @@ analyse:php:lint: needs: [ "build:php" ] extends: .base-analyse + rules: + - changes: + - "**/*.php" script: - composer run php:lint -d ${PATH_APP_DIR} diff --git a/analyse/analyse-php-rector.yml b/analyse/analyse-php-rector.yml index 1ce5c6c..8b1b87b 100644 --- a/analyse/analyse-php-rector.yml +++ b/analyse/analyse-php-rector.yml @@ -7,5 +7,8 @@ analyse:php:rector: needs: [ "build:php" ] extends: .base-analyse + rules: + - changes: + - "**/*.php" script: - composer run php:rector:check -d ${PATH_APP_DIR} diff --git a/analyse/analyse-php-stan.yml b/analyse/analyse-php-stan.yml index 339aaf4..7a57354 100644 --- a/analyse/analyse-php-stan.yml +++ b/analyse/analyse-php-stan.yml @@ -7,5 +7,8 @@ analyse:php:stan: needs: [ "build:php" ] extends: .base-analyse + rules: + - changes: + - "**/*.php" script: - composer run php:stan:check -d ${PATH_APP_DIR} diff --git a/analyse/analyse-typoscript-lint.yml b/analyse/analyse-typoscript-lint.yml index 61dd608..02f8912 100644 --- a/analyse/analyse-typoscript-lint.yml +++ b/analyse/analyse-typoscript-lint.yml @@ -7,5 +7,10 @@ analyse:typoscript:lint: needs: [ "build:php" ] extends: .base-analyse + rules: + - changes: + - "**/*.typoscript" + - "**/*.tsconfig" + - "**/Configuration/**/*.ts" script: - composer run typoscript:lint -d ${PATH_APP_DIR} diff --git a/analyse/analyse-xml-lint.yml b/analyse/analyse-xml-lint.yml index 070dbe4..bfb8e87 100644 --- a/analyse/analyse-xml-lint.yml +++ b/analyse/analyse-xml-lint.yml @@ -7,6 +7,9 @@ analyse:xml:lint: needs: [ "build:php" ] extends: .base-analyse + rules: + - changes: + - "**/*.xlf" script: - apt-get update -qq && apt-get install libxml2-utils -qq - composer run xml:lint -d ${PATH_APP_DIR} diff --git a/analyse/analyse-yaml-lint.yml b/analyse/analyse-yaml-lint.yml index 78fab29..1434940 100644 --- a/analyse/analyse-yaml-lint.yml +++ b/analyse/analyse-yaml-lint.yml @@ -7,5 +7,10 @@ analyse:yaml:lint: needs: [ "build:php" ] extends: .base-analyse + rules: + - if + - changes: + - "**/*.yml" + - "**/*.yaml" script: - composer run yaml:lint -d ${PATH_APP_DIR}