diff --git a/README.md b/README.md index cc5b8fa2..ff21388d 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ with: These tools can be setup globally using the `tools` input. -`blackfire`, `blackfire-player`, `codeception`, `composer`, `composer-normalize`, `composer-prefetcher`, `composer-require-checker`, `cs2pr`, `deployer`, `flex`, `infection`, `pecl`, `phan`, `phinx`, `phive`, `php-config`, `php-cs-fixer`, `phpcbf`, `phpcpd`, `phpcs`, `phpize`, `phpmd`, `phpstan`, `phpunit`, `prestissimo`, `psalm`, `symfony`, `vapor-cli` +`blackfire`, `blackfire-player`, `codeception`, `composer`, `composer-normalize`, `composer-prefetcher`, `composer-require-checker`, `composer-unused`, `cs2pr`, `deployer`, `flex`, `infection`, `pecl`, `phan`, `phinx`, `phive`, `phpcbf`, `phpcpd`, `php-config`, `php-cs-fixer`, `phpcs`, `phpize`, `phpmd`, `phpstan`, `phpunit`, `prestissimo`, `psalm`, `symfony`, `vapor-cli` ```yaml uses: shivammathur/setup-php@v2 @@ -669,4 +669,4 @@ If this action helped you. - [About GitHub Actions](https://github.com/features/actions "GitHub Actions") - [GitHub Actions Syntax](https://help.github.com/en/articles/workflow-syntax-for-github-actions "GitHub Actions Syntax") -- [Other Awesome Actions](https://github.com/sdras/awesome-actions "List of Awesome GitHub Actions") +- [Other Awesome Actions](https://github.com/sdras/awesome-actions "List of Awesome GitHub Actions") \ No newline at end of file diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts index 03bf1ee7..c27b00d3 100644 --- a/__tests__/tools.test.ts +++ b/__tests__/tools.test.ts @@ -452,6 +452,7 @@ describe('Tools tests', () => { 'composer-normalize', 'composer-prefetcher:1.2.3', 'composer-require-checker', + 'composer-unused', 'cs2pr:1.2.3', 'flex', 'infection', @@ -491,6 +492,9 @@ describe('Tools tests', () => { expect(script).toContain( 'add_tool https://github.com/maglnet/ComposerRequireChecker/releases/latest/download/composer-require-checker.phar composer-require-checker' ); + expect(script).toContain( + 'add_tool https://github.com/composer-unused/composer-unused/releases/latest/download/composer-unused.phar composer-unused' + ); expect(script).toContain( 'add_tool https://github.com/staabm/annotate-pull-request-from-checkstyle/releases/download/1.2.3/cs2pr cs2pr' ); diff --git a/dist/index.js b/dist/index.js index b3c0786d..d11cf2a2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2319,6 +2319,11 @@ async function addTools(tools_csv, php_version, os_version) { url = github + 'maglnet/ComposerRequireChecker/' + uri; script += await addArchive(tool, version, url, os_version); break; + case 'composer-unused': + uri = await getUri(tool, '.phar', version, 'releases', '', 'download'); + url = github + 'composer-unused/composer-unused/' + uri; + script += await addArchive(tool, version, url, os_version); + break; case 'cs2pr': uri = await getUri(tool, '', version, 'releases', '', 'download'); url = github + 'staabm/annotate-pull-request-from-checkstyle/' + uri; diff --git a/src/tools.ts b/src/tools.ts index 184b0174..c5ed8a56 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -505,6 +505,11 @@ export async function addTools( url = github + 'maglnet/ComposerRequireChecker/' + uri; script += await addArchive(tool, version, url, os_version); break; + case 'composer-unused': + uri = await getUri(tool, '.phar', version, 'releases', '', 'download'); + url = github + 'composer-unused/composer-unused/' + uri; + script += await addArchive(tool, version, url, os_version); + break; case 'cs2pr': uri = await getUri(tool, '', version, 'releases', '', 'download'); url = github + 'staabm/annotate-pull-request-from-checkstyle/' + uri;