Skip to content

Commit 7a85a53

Browse files
committed
Add support for tool Laravel Pint
1 parent 3312ea6 commit 7a85a53

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ PHP extensions can be set up using the `extensions` input. It accepts a `string`
225225

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

228-
[`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`]
228+
[`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`]
229229

230230
```yaml
231231
- name: Setup PHP with tools
@@ -1033,6 +1033,7 @@ These companies generously provide setup-php their products and services to aid
10331033
[`phpunit`]: https://phpunit.de/
10341034
[`phpunit-bridge`]: https://symfony.com/doc/current/components/phpunit_bridge.html
10351035
[`phpunit-polyfills`]: https://github.com/Yoast/PHPUnit-Polyfills
1036+
[`pint`]: https://github.com/laravel/pint
10361037
[`prestissimo`]: https://github.com/hirak/prestissimo
10371038
[`protoc`]: https://developers.google.com/protocol-buffers/
10381039
[`psalm`]: https://psalm.dev/

__tests__/tools.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ describe('Tools tests', () => {
372372

373373
it.each([
374374
[
375-
'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',
375+
'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',
376376
[
377377
'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',
378378
'add_blackfire',

src/configs/tools.json

+8
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@
105105
"version_prefix": "",
106106
"version_parameter": "-V"
107107
},
108+
"pint": {
109+
"type": "phar",
110+
"repository": "laravel/pint",
111+
"extension": ".phar",
112+
"domain": "https://github.com",
113+
"version_prefix": "Pint ",
114+
"version_parameter": "-V"
115+
},
108116
"psalm": {
109117
"type": "phar",
110118
"repository": "vimeo/psalm",

0 commit comments

Comments
 (0)