PHP tool integrate in GitHub Actions.
Following is some example.
Run with default config.
- uses: MilesChou/php-tools-action/phpcs@master
With another PHP version
- uses: MilesChou/php-tools-action/5.5/phpcs@master
With args
- uses: MilesChou/php-tools-action/phpcs@master
with:
args: some.php
Run with default config.
- uses: MilesChou/php-tools-action/phpmd@master
With another PHP version
- uses: MilesChou/php-tools-action/5.6/phpmd@master
With args
- uses: MilesChou/php-tools-action/phpmd@master
with:
args: some.php
Run with default config.
- uses: MilesChou/php-tools-action/phpmetrics@master
With another PHP version
- uses: MilesChou/php-tools-action/7.0/phpmetrics@master
With args
- uses: MilesChou/php-tools-action/phpmetrics@master
with:
args: some.php
Run with default config.
- uses: MilesChou/php-tools-action/phpstan@master
With args
- uses: MilesChou/php-tools-action/phpstan@master
with:
args: some.php
PHPStan require PHP ^7.1, so just support PHP 7.3.
Run with default config
- uses: MilesChou/php-tools-action/phpunit@master
With another PHP version
- uses: MilesChou/php-tools-action/7.2/phpunit@master
With args
- uses: MilesChou/php-tools-action/phpunit@master
with:
args: --configuration my-phpunit.xml
With PHPUnit version
- uses: MilesChou/php-tools-action/phpunit@master
with:
phpunit_version: 7.5.0
The MIT License (MIT). Please see License File for more information.