diff --git a/README.md b/README.md index 26d0e589b..ab9b2a46d 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,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`], [`churn`], [`codeception`], [`composer`], [`composer-normalize`], [`composer-prefetcher`], [`composer-require-checker`], [`composer-unused`], [`cs2pr`], [`deployer`], [`flex`], [`grpc_php_plugin`], [`infection`], [`parallel-lint`], [`pecl`], [`phan`], [`phing`], [`phinx`], [`phive`], [`php-config`], [`php-cs-fixer`], [`phpcbf`], [`phpcpd`], [`phpcs`], [`phpdoc`] or [`phpDocumentor`], [`phpize`], [`phplint`], [`phpmd`], [`phpspec`], [`phpstan`], [`phpunit`], [`phpunit-bridge`], [`phpunit-polyfills`], [`prestissimo`], [`protoc`], [`psalm`], [`symfony`] or [`symfony-cli`], [`vapor`] or [`vapor-cli`], [`wp`] or [`wp-cli`] +[`behat`], [`blackfire`], [`blackfire-player`], [`churn`], [`codeception`], [`composer`], [`composer-normalize`], [`composer-prefetcher`], [`composer-require-checker`], [`composer-unused`], [`cs2pr`], [`deployer`], [`flex`], [`grpc_php_plugin`], [`infection`], [`parallel-lint`], [`pecl`], [`pint`], [`phan`], [`phing`], [`phinx`], [`phive`], [`php-config`], [`php-cs-fixer`], [`phpcbf`], [`phpcpd`], [`phpcs`], [`phpdoc`] or [`phpDocumentor`], [`phpize`], [`phplint`], [`phpmd`], [`phpspec`], [`phpstan`], [`phpunit`], [`phpunit-bridge`], [`phpunit-polyfills`], [`prestissimo`], [`protoc`], [`psalm`], [`symfony`] or [`symfony-cli`], [`vapor`] or [`vapor-cli`], [`wp`] or [`wp-cli`] ```yaml - name: Setup PHP with tools @@ -1014,6 +1014,7 @@ These companies generously provide setup-php their products and services to aid [`infection`]: https://infection.github.io/ [`parallel-lint`]: https://github.com/php-parallel-lint/PHP-Parallel-Lint [`pecl`]: https://pecl.php.net/ +[`pint`]: https://github.com/laravel/pint [`phan`]: https://github.com/phan/phan/wiki [`phing`]: https://www.phing.info/ [`phinx`]: https://phinx.org/ diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts index 98807ac0c..6ed98074d 100644 --- a/__tests__/tools.test.ts +++ b/__tests__/tools.test.ts @@ -372,7 +372,7 @@ describe('Tools tests', () => { it.each([ [ - 'blackfire, blackfire-player, churn, cs2pr, flex, grpc_php_plugin, parallel-lint, php-cs-fixer, phpDocumentor, phplint, phpstan, phpunit, pecl, phing, phinx, phinx:1.2.3, phive, phpunit-bridge, phpunit-polyfills, php-config, phpize, protoc, symfony, vapor, wp', + 'blackfire, blackfire-player, churn, cs2pr, flex, grpc_php_plugin, parallel-lint, php-cs-fixer, phpDocumentor, phplint, phpstan, phpunit, pecl, pint, phing, phinx, phinx:1.2.3, phive, phpunit-bridge, phpunit-polyfills, php-config, phpize, protoc, symfony, vapor, wp', [ '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_blackfire', diff --git a/src/configs/tools.json b/src/configs/tools.json index 8ef5c33e9..d6f40e0f6 100644 --- a/src/configs/tools.json +++ b/src/configs/tools.json @@ -1,4 +1,12 @@ { + "pint": { + "type": "phar", + "repository": "laravel/pint", + "extension": ".phar", + "domain": "https://github.com", + "version_prefix": "Pint ", + "version_parameter": "-V" + }, "churn": { "type": "phar", "repository": "bmitch/churn-php",