From 24eff50574d120b92686a76df102d75378424502 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Mon, 15 Jul 2024 15:14:10 +0200 Subject: [PATCH] Support composer-dependency-analyser --- README.md | 3 ++- __tests__/tools.test.ts | 3 ++- src/configs/tools.json | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c5af9f5c6..33df7308f 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,7 @@ PHP extensions can be set up using the `extensions` input. It accepts a `string` These tools can be set up globally using the `tools` input. It accepts a string in csv-format. -[`behat`], [`blackfire`], [`blackfire-player`], [`box`], [`castor`], [`churn`], [`codeception`], [`composer`], [`composer-normalize`], [`composer-prefetcher`], [`composer-require-checker`], [`composer-unused`], [`cs2pr`], [`deployer`], [`ecs`], [`flex`], [`grpc_php_plugin`], [`infection`], [`parallel-lint`], [`pecl`], [`phan`], [`phing`], [`phinx`], [`phive`], [`php-config`], [`php-cs-fixer`], [`php-scoper`], [`phpcbf`], [`phpcpd`], [`phpcs`], [`phpdoc`] or [`phpDocumentor`], [`phpize`], [`phplint`], [`phpmd`], [`phpspec`], [`phpstan`], [`phpunit`], [`phpunit-bridge`], [`phpunit-polyfills`], [`pint`], [`prestissimo`], [`protoc`], [`psalm`], [`rector`], [`symfony`] or [`symfony-cli`], [`vapor`] or [`vapor-cli`], [`wp`] or [`wp-cli`] +[`behat`], [`blackfire`], [`blackfire-player`], [`box`], [`castor`], [`churn`], [`codeception`], [`composer`], [`composer-dependency-analyser`], [`composer-normalize`], [`composer-prefetcher`], [`composer-require-checker`], [`composer-unused`], [`cs2pr`], [`deployer`], [`ecs`], [`flex`], [`grpc_php_plugin`], [`infection`], [`parallel-lint`], [`pecl`], [`phan`], [`phing`], [`phinx`], [`phive`], [`php-config`], [`php-cs-fixer`], [`php-scoper`], [`phpcbf`], [`phpcpd`], [`phpcs`], [`phpdoc`] or [`phpDocumentor`], [`phpize`], [`phplint`], [`phpmd`], [`phpspec`], [`phpstan`], [`phpunit`], [`phpunit-bridge`], [`phpunit-polyfills`], [`pint`], [`prestissimo`], [`protoc`], [`psalm`], [`rector`], [`symfony`] or [`symfony-cli`], [`vapor`] or [`vapor-cli`], [`wp`] or [`wp-cli`] ```yaml - name: Setup PHP with tools @@ -1049,6 +1049,7 @@ These companies generously provide setup-php their products and services to aid [`churn`]: https://github.com/bmitch/churn-php [`codeception`]: https://codeception.com/ [`composer`]: https://getcomposer.org/ +[`composer-dependency-analyser`]: https://github.com/shipmonk-rnd/composer-dependency-analyser [`composer-normalize`]: https://github.com/ergebnis/composer-normalize [`composer-prefetcher`]: https://github.com/narrowspark/automatic-composer-prefetcher [`composer-require-checker`]: https://github.com/maglnet/ComposerRequireChecker diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts index cde459d59..93a6a4322 100644 --- a/__tests__/tools.test.ts +++ b/__tests__/tools.test.ts @@ -434,7 +434,7 @@ describe('Tools tests', () => { it.each([ [ - 'behat, blackfire, blackfire-player, churn, composer-normalize, composer-require-checker, composer-unused, cs2pr:1.2.3, ecs, flex, grpc_php_plugin:1.2.3, infection, phan, phan:1.2.3, phing:1.2.3, phinx, phive:1.2.3, php-config, phpcbf, phpcpd, phpcs, phpdoc, phpize, phpmd, phpspec, phpunit-bridge:5.6, phpunit-polyfills:1.0.1, protoc:v1.2.3, psalm, rector, symfony-cli, vapor-cli, wp-cli', + 'behat, blackfire, blackfire-player, churn, composer-dependency-analyser, composer-normalize, composer-require-checker, composer-unused, cs2pr:1.2.3, ecs, flex, grpc_php_plugin:1.2.3, infection, phan, phan:1.2.3, phing:1.2.3, phinx, phive:1.2.3, php-config, phpcbf, phpcpd, phpcs, phpdoc, phpize, phpmd, phpspec, phpunit-bridge:5.6, phpunit-polyfills:1.0.1, protoc:v1.2.3, psalm, rector, symfony-cli, vapor-cli, wp-cli', [ 'add_tool https://github.com/shivammathur/composer-cache/releases/latest/download/composer-7.4-stable.phar,https://dl.cloudsmith.io/public/shivammathur/composer-cache/raw/files/composer-7.4-stable.phar,https://getcomposer.org/composer-stable.phar composer', 'add_composer_tool behat behat behat/ scoped', @@ -442,6 +442,7 @@ describe('Tools tests', () => { 'add_tool https://get.blackfire.io/blackfire-player-v1.22.0.phar blackfire-player "-V"', 'add_tool https://github.com/bmitch/churn-php/releases/latest/download/churn.phar churn "-V"', 'add_tool https://github.com/ergebnis/composer-normalize/releases/latest/download/composer-normalize.phar composer-normalize "-V"', + 'add_composer_tool composer-dependency-analyser composer-dependency-analyser shipmonk-rnd/ scoped', 'add_composer_tool composer-require-checker composer-require-checker maglnet/ scoped', 'add_tool https://github.com/composer-unused/composer-unused/releases/latest/download/composer-unused.phar composer-unused "-V"', 'add_tool https://github.com/staabm/annotate-pull-request-from-checkstyle/releases/download/1.2.3/cs2pr cs2pr "-V"', diff --git a/src/configs/tools.json b/src/configs/tools.json index 0a15a3c40..e7c60bb96 100644 --- a/src/configs/tools.json +++ b/src/configs/tools.json @@ -16,6 +16,11 @@ "version_prefix": "", "version_parameter": "-V" }, + "composer-dependency-analyser": { + "type": "composer", + "repository": "shipmonk-rnd/composer-dependency-analyser", + "scope": "scoped" + }, "composer-unused": { "type": "phar", "repository": "composer-unused/composer-unused",