clearcutcoding / symfony-ci-runner
本软件包最新版本(3.1.0)没有可用的许可信息。
通过配置文件决定要运行的CI过程
3.1.0
2024-01-23 06:57 UTC
Requires
- php: >=8.3
- friendsofphp/php-cs-fixer: ^3.16
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- rector/rector: ^0.19
- squizlabs/php_codesniffer: ^3.7
- symfony/phpunit-bridge: ^7.0
- symfony/test-pack: ^1.0
- symfony/yaml: ^7.0
- vimeo/psalm: ^5.9
This package is auto-updated.
Last update: 2024-09-17 01:08:21 UTC
README
安装
composer require clearcutcoding/symfony-ci-runner --dev
配置
- 在您的PHP项目根目录下创建名为
ci-runner.config.yaml的配置文件 - 设置要运行哪些CI过程。一些有自己的根配置文件来标识要运行的目录。对于其他情况,在这里设置目录(括号内显示可能的值)。
rector: true [true | false]
phpcsfixer: true [true | false]
lintyaml: config src [list of dirs | false]
linttwig: src [list of dirs | false]
phpcs: true [true | false]
phpunit: true [true | false]
phpmd: src tests [list of dirs | false]
phpstan: true [true | false]
psalm: true [true | false]
以下需要创建配置文件
rector -> rector.php
phpcsfixer -> .php-cs-fixer.php
phpcs -> phpcs.xml
phpunit -> phpunit.xml
phpstan -> phpstan.neon
psalm -> psalm.xml
开发
- 从项目根目录内部运行
vendor/bin/ci-runner
构建
- 运行
vendor/bin/ci-runner --no-mods以确保不会运行更改文件的进程。