diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 622bb17b..c7705468 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,6 +103,7 @@ jobs: fail-fast: false matrix: command: + - composer:normalize - php:fixer - php:stan - php:rector diff --git a/.phive/phars.xml b/.phive/phars.xml index b7baec8f..6af30ed5 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,4 +1,5 @@ + diff --git a/composer.json b/composer.json index 1bf0a7bc..1e114548 100644 --- a/composer.json +++ b/composer.json @@ -66,6 +66,7 @@ "@ci:static", "@ci:dynamic" ], + "ci:composer:normalize": "\"./.phive/composer-normalize\" --dry-run", "ci:dynamic": [ "@ci:tests" ], @@ -74,6 +75,7 @@ "ci:php:rector": "rector --no-progress-bar --dry-run --config=config/rector.php", "ci:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon", "ci:static": [ + "@ci:composer:normalize", "@ci:php:fixer", "@ci:php:lint", "@ci:php:rector", @@ -89,6 +91,7 @@ "@fix:php" ], "fix:php": [ + "@fix:composer:normalize", "@fix:php:rector", "@fix:php:fixer" ], @@ -98,6 +101,7 @@ }, "scripts-descriptions": { "ci": "Runs all dynamic and static code checks.", + "ci:composer:normalize": "Checks the formatting and structure of the composer.json.", "ci:dynamic": "Runs all dynamic code checks (i.e., currently, the unit tests).", "ci:php:fixer": "Checks the code style with PHP CS Fixer.", "ci:php:lint": "Checks the syntax of the PHP code.", @@ -109,6 +113,7 @@ "ci:tests:sof": "Runs the unit tests and stops at the first failure.", "ci:tests:unit": "Runs all unit tests.", "fix": "Runs all fixers", + "fix:composer:normalize": "Reformats and sorts the composer.json file.", "fix:php": "Autofixes all autofixable issues in the PHP code.", "fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.", "fix:php:rector": "Fixes autofixable issues found by Rector.",