diff --git a/README.md b/README.md index 26d0e589b..2eb73fc73 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`], [`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`], [`pint`], [`prestissimo`], [`protoc`], [`psalm`], [`symfony`] or [`symfony-cli`], [`vapor`] or [`vapor-cli`], [`wp`] or [`wp-cli`] ```yaml - name: Setup PHP with tools @@ -1033,6 +1033,7 @@ These companies generously provide setup-php their products and services to aid [`phpunit`]: https://phpunit.de/ [`phpunit-bridge`]: https://symfony.com/doc/current/components/phpunit_bridge.html [`phpunit-polyfills`]: https://github.com/Yoast/PHPUnit-Polyfills +[`pint`]: https://github.com/laravel/pint [`prestissimo`]: https://github.com/hirak/prestissimo [`protoc`]: https://developers.google.com/protocol-buffers/ [`psalm`]: https://psalm.dev/ diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts index 98807ac0c..0d7175069 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, phing, phinx, phinx:1.2.3, phive, phpunit-bridge, phpunit-polyfills, pint, 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', @@ -394,6 +394,7 @@ describe('Tools tests', () => { 'add_tool https://github.com/phar-io/phive/releases/download/3.2.1/phive-3.2.1.phar phive "status"', 'add_composertool phpunit-bridge phpunit-bridge symfony/ global', 'add_composertool phpunit-polyfills phpunit-polyfills yoast/ global', + 'add_tool https://github.com/laravel/pint/releases/latest/download/pint.phar pint "-V"', 'add_devtools php-config', 'add_devtools phpize', 'add_protoc latest', diff --git a/src/configs/tools.json b/src/configs/tools.json index 8ef5c33e9..4421bbc34 100644 --- a/src/configs/tools.json +++ b/src/configs/tools.json @@ -105,6 +105,14 @@ "version_prefix": "", "version_parameter": "-V" }, + "pint": { + "type": "phar", + "repository": "laravel/pint", + "extension": ".phar", + "domain": "https://github.com", + "version_prefix": "Pint ", + "version_parameter": "-V" + }, "psalm": { "type": "phar", "repository": "vimeo/psalm",