Skip to content

Commit c49792f

Browse files
authored
Merge pull request #838 from em411/feature/ecs-support
Add support for ecs
2 parents c665c7a + 806c3cc commit c49792f

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

README.md

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

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

227-
[`behat`], [`blackfire`], [`blackfire-player`], [`box`], [`castor`], [`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`], [`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`]
227+
[`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`]
228228

229229
```yaml
230230
- name: Setup PHP with tools
@@ -1050,6 +1050,7 @@ These companies generously provide setup-php their products and services to aid
10501050
[`composer-unused`]: https://github.com/composer-unused/composer-unused
10511051
[`cs2pr`]: https://github.com/staabm/annotate-pull-request-from-checkstyle
10521052
[`deployer`]: https://deployer.org/
1053+
[`ecs`]: https://github.com/easy-coding-standard/easy-coding-standard
10531054
[`flex`]: https://flex.symfony.com/
10541055
[`grpc_php_plugin`]: https://grpc.io/
10551056
[`infection`]: https://infection.github.io/

__tests__/tools.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ 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, 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-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',
@@ -468,7 +468,8 @@ describe('Tools tests', () => {
468468
'add_composer_tool rector rector rector/ scoped',
469469
'add_symfony latest',
470470
'add_composer_tool vapor-cli vapor-cli laravel/ scoped',
471-
'add_tool https://github.com/wp-cli/builds/blob/gh-pages/phar/wp-cli.phar?raw=true wp-cli "--version"'
471+
'add_tool https://github.com/wp-cli/builds/blob/gh-pages/phar/wp-cli.phar?raw=true wp-cli "--version"',
472+
'add_composer_tool easy-coding-standard ecs symplify/ scoped'
472473
]
473474
]
474475
])('checking addTools on darwin', async (tools_csv, scripts) => {

src/configs/tools.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,5 +318,10 @@
318318
"extension": ".phar",
319319
"version_parameter": "--version",
320320
"version_prefix": "v"
321+
},
322+
"ecs": {
323+
"type": "composer",
324+
"repository": "symplify/easy-coding-standard",
325+
"scope": "scoped"
321326
}
322-
}
327+
}

0 commit comments

Comments
 (0)