From 411de65f0868da85828b05ea9bdb0e0e5e01f621 Mon Sep 17 00:00:00 2001 From: Marjo van Lier Date: Tue, 9 Jan 2024 09:22:34 +0100 Subject: [PATCH] Add composer validate test to composer.json A new test script has been added to the composer.json file, specifically the 'composer validate --strict' command. This tool checks for syntax errors in the composer.json file, enforcing a strict validation. --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index 463f7b4..edaf34d 100644 --- a/composer.json +++ b/composer.json @@ -60,6 +60,7 @@ "composer outdated -D" ], "tests": [ + "@test:composer-validate", "@test:lint", "@test:code-style", "@test:phpunit", @@ -69,6 +70,7 @@ "@test:psalm", "@test:rector" ], + "test:composer-validate": "composer validate --strict", "test:code-style": "php -d memory_limit=-1 ./vendor/bin/pint --test", "test:infection": "php -d memory_limit=-1 -d zend_extension=xdebug -d xdebug.mode=coverage ./vendor/bin/infection --threads=4 --show-mutations", "test:lint": "php -d memory_limit=-1 ./vendor/bin/parallel-lint --exclude vendor --show-deprecated .",