/php-tools-action

PHP tool integrate in GitHub Actions.

Primary LanguageShellMIT LicenseMIT

PHP tool action

GitHub Release License

PHP tool integrate in GitHub Actions.

Usage

Following is some example.

phpcs

See https://github.com/squizlabs/PHP_CodeSniffer

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

phpmd

See https://github.com/phpmd/phpmd

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

phpmetrics

See https://github.com/phpmetrics/PhpMetrics

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

phpstan

See https://github.com/phpstan/phpstan

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.

phpunit

See https://github.com/sebastianbergmann/phpunit

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

Credits

License

The MIT License (MIT). Please see License File for more information.