From 1f4370c92fd94fcdc5ddee7685a110e48e264744 Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Sun, 4 Feb 2024 10:03:06 +0100 Subject: [PATCH] [TASK] Add PHP CS Fixer to GitLab (#1151) --- .gitlab/pipeline/.gitlab-ci.yml | 1 + .gitlab/pipeline/jobs/php-cs-fixer.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 .gitlab/pipeline/jobs/php-cs-fixer.yml diff --git a/.gitlab/pipeline/.gitlab-ci.yml b/.gitlab/pipeline/.gitlab-ci.yml index a829dc9..b1c72b7 100644 --- a/.gitlab/pipeline/.gitlab-ci.yml +++ b/.gitlab/pipeline/.gitlab-ci.yml @@ -33,6 +33,7 @@ include: - '/.gitlab/pipeline/jobs/php-lint-php8.2.yml' - '/.gitlab/pipeline/jobs/php-lint-php8.3.yml' - '/.gitlab/pipeline/jobs/phpcs.yml' + - '/.gitlab/pipeline/jobs/php-cs-fixer.yml' - '/.gitlab/pipeline/jobs/ts-lint.yml' - '/.gitlab/pipeline/jobs/unit-php7.4-v11-highest.yml' - '/.gitlab/pipeline/jobs/unit-php7.4-v11-lowest.yml' diff --git a/.gitlab/pipeline/jobs/php-cs-fixer.yml b/.gitlab/pipeline/jobs/php-cs-fixer.yml new file mode 100644 index 0000000..663fc68 --- /dev/null +++ b/.gitlab/pipeline/jobs/php-cs-fixer.yml @@ -0,0 +1,11 @@ +php-cs-fixer: + extends: .default + stage: codestyle + needs: + - build-composer-dependencies + - php-lint-php7.4 + - php-lint-php8.0 + - php-lint-php8.1 + - php-lint-php8.2 + script: + - composer ci:php:cs-fixer