From e17b2d358e6e71119d87b8200022239be50b45dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Fri, 3 Jul 2026 11:22:24 +0200 Subject: [PATCH 1/2] [Composer] Added one command to run them all (checks) --- composer.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b45d0d85b3..e13ca22a48 100644 --- a/composer.json +++ b/composer.json @@ -123,7 +123,17 @@ "check-rector": "php tools/extract-inline-php.php && rector process --dry-run --ansi", "check-yaml": "phpunit --group yaml", "phpunit": "phpunit --exclude-group=yaml", - "yaml-update-baseline": "php tests/generate-yaml-baseline.php" + "yaml-update-baseline": "php tests/generate-yaml-baseline.php", + "composer-update": "[ -d vendor ] || composer update", + "yarn-install": "[ -d node_modules ] || yarn install", + "markdownlint": [ + "@yarn-install", + "yarn markdownlint" + ], + "test": [ + "@composer-update", + "EXIT=0; composer check-cs || EXIT=1; composer phpstan || EXIT=1; composer deptrac || EXIT=1; composer check-rector || EXIT=1; composer markdownlint || EXIT=1; exit $EXIT" + ] }, "scripts-descriptions": { "fix-cs": "Automatically fixes code style in all files", @@ -133,7 +143,11 @@ "fix-rector": "Automatically applies Rector refactoring to code samples and syncs back to Markdown", "check-rector": "Check for code refactoring opportunities", "check-yaml": "Run PHPUnit tests (YAML validation)", - "yaml-update-baseline": "Regenerate tests/yaml-validation-baseline.yaml from current failures" + "yaml-update-baseline": "Regenerate tests/yaml-validation-baseline.yaml from current failures", + "composer-update": "Install composer dependencies if not already installed", + "yarn-install": "Install yarn dependencies if not already installed", + "markdownlint": "Run Markdownlint on all documentation files", + "test": "Run all checks (CS-Fixer, PHPStan, Deptrac, Rector, Markdownlint, YAML checks), continuing past failures and reporting failure overall if any check failed" }, "config": { "allow-plugins": false From 948cc056cb8463e3fc6cee982e5d3dfb9a31d28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 7 Jul 2026 17:20:11 +0200 Subject: [PATCH 2/2] Added YAML check --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e13ca22a48..8c657efc03 100644 --- a/composer.json +++ b/composer.json @@ -132,7 +132,7 @@ ], "test": [ "@composer-update", - "EXIT=0; composer check-cs || EXIT=1; composer phpstan || EXIT=1; composer deptrac || EXIT=1; composer check-rector || EXIT=1; composer markdownlint || EXIT=1; exit $EXIT" + "EXIT=0; composer check-cs || EXIT=1; composer phpstan || EXIT=1; composer deptrac || EXIT=1; composer check-rector || EXIT=1; composer markdownlint || EXIT=1; composer check-yaml || EXIT=1; exit $EXIT" ] }, "scripts-descriptions": {