Skip to content

Commit 53f8237

Browse files
authored
Merge pull request #859 from janedbal/composer-dependency-analyser
Support composer-dependency-analyser tool
2 parents 15b6112 + 24eff50 commit 53f8237

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ PHP extensions can be set up using the `extensions` input. It accepts a `string`
226226

227227
These tools can be set up globally using the `tools` input. It accepts a string in csv-format.
228228

229-
[`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`]
229+
[`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`]
230230

231231
```yaml
232232
- name: Setup PHP with tools
@@ -1049,6 +1049,7 @@ These companies generously provide setup-php their products and services to aid
10491049
[`churn`]: https://github.com/bmitch/churn-php
10501050
[`codeception`]: https://codeception.com/
10511051
[`composer`]: https://getcomposer.org/
1052+
[`composer-dependency-analyser`]: https://github.com/shipmonk-rnd/composer-dependency-analyser
10521053
[`composer-normalize`]: https://github.com/ergebnis/composer-normalize
10531054
[`composer-prefetcher`]: https://github.com/narrowspark/automatic-composer-prefetcher
10541055
[`composer-require-checker`]: https://github.com/maglnet/ComposerRequireChecker

__tests__/tools.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,14 +434,15 @@ describe('Tools tests', () => {
434434

435435
it.each([
436436
[
437-
'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',
437+
'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',
438438
[
439439
'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',
440440
'add_composer_tool behat behat behat/ scoped',
441441
'add_blackfire',
442442
'add_tool https://get.blackfire.io/blackfire-player-v1.22.0.phar blackfire-player "-V"',
443443
'add_tool https://github.com/bmitch/churn-php/releases/latest/download/churn.phar churn "-V"',
444444
'add_tool https://github.com/ergebnis/composer-normalize/releases/latest/download/composer-normalize.phar composer-normalize "-V"',
445+
'add_composer_tool composer-dependency-analyser composer-dependency-analyser shipmonk-rnd/ scoped',
445446
'add_composer_tool composer-require-checker composer-require-checker maglnet/ scoped',
446447
'add_tool https://github.com/composer-unused/composer-unused/releases/latest/download/composer-unused.phar composer-unused "-V"',
447448
'add_tool https://github.com/staabm/annotate-pull-request-from-checkstyle/releases/download/1.2.3/cs2pr cs2pr "-V"',

src/configs/tools.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"version_prefix": "",
1717
"version_parameter": "-V"
1818
},
19+
"composer-dependency-analyser": {
20+
"type": "composer",
21+
"repository": "shipmonk-rnd/composer-dependency-analyser",
22+
"scope": "scoped"
23+
},
1924
"composer-unused": {
2025
"type": "phar",
2126
"repository": "composer-unused/composer-unused",

0 commit comments

Comments
 (0)