From 05270b7f28b7a7da78026cd990e56f00813477cc Mon Sep 17 00:00:00 2001 From: Maik Schneider Date: Thu, 19 Dec 2024 14:25:53 +0100 Subject: [PATCH] feat: add test-composer-normalize --- README.md | 2 ++ test-composer-normalize.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test-composer-normalize.yml diff --git a/README.md b/README.md index ba3486e..5871d19 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ include: - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/.deploy-prepare.yml' - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/build-php.yml' - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/build-node.yml' + - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-composer-normalize.yml' - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-es-lint.yml' - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-html-lint.yml' - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-php-lint.yml' @@ -30,6 +31,7 @@ include: * `build-node` ⚠️ needs configuration ### Stage `test` +* `test-composer-normalize` * `test-es-lint` ⚠️ needs configuration * `test-html-lint` ⚠️ needs configuration * `test-php-lint` diff --git a/test-composer-normalize.yml b/test-composer-normalize.yml new file mode 100644 index 0000000..d6e219c --- /dev/null +++ b/test-composer-normalize.yml @@ -0,0 +1,14 @@ +test-composer-normalize: + stage: test + needs: ["build-php"] + script: + - composer run ci:composer:normalize + rules: + - if: $RESET_JOB == 'true' + when: never + - if: $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/ + when: never + - if: $CI_COMMIT_BRANCH == $BASE_BRANCH + - if: $CI_COMMIT_AUTHOR != 'Renovate Bot ' || $CI_COMMIT_BRANCH !~ /^renovate.*$/ + changes: + - "composer.json" \ No newline at end of file