diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7309b0..0f03400 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,7 @@ jobs: - "php:sniff" - "php:codestyle" - "php:copypaste" + - "composer:normalize" php-version: - 7.4 code-quality-frontend: diff --git a/.gitlab/pipeline/.gitlab-ci.yml b/.gitlab/pipeline/.gitlab-ci.yml index 051300e..f1c6b6b 100644 --- a/.gitlab/pipeline/.gitlab-ci.yml +++ b/.gitlab/pipeline/.gitlab-ci.yml @@ -3,6 +3,7 @@ stages: - build - lint - codestyle + - normalize - test include: @@ -296,3 +297,9 @@ php-copypaste-check: - php-lint-php7.4 script: - composer ci:php:copypaste + +composer-normalize: + extends: .default + stage: codestyle + script: + - composer ci:composer:normalize diff --git a/README.md b/README.md index 3199d58..2d837eb 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,10 @@ All of those checks are available in Github Actions and in Gitlab CI. `composer ci:ts:lint` +### Composer Normalize by [composer-normalize](https://github.com/ergebnis/composer-normalize) + +`composer ci:composer:normalize` + ### Running unit tests `composer ci:tests:unit` diff --git a/composer.json b/composer.json index fbfec3d..ddf965c 100644 --- a/composer.json +++ b/composer.json @@ -79,6 +79,7 @@ "ci": [ "@ci:static" ], + "ci:composer:normalize": "php ./tools/composer-normalize.phar --dry-run", "ci:dynamic": [ "@ci:tests" ], diff --git a/phive.xml b/phive.xml index e521599..4662e00 100644 --- a/phive.xml +++ b/phive.xml @@ -3,4 +3,5 @@ + diff --git a/tools/composer-normalize.phar b/tools/composer-normalize.phar new file mode 100755 index 0000000..3eb8b72 Binary files /dev/null and b/tools/composer-normalize.phar differ