Skip to content

PHP tool Action

Actions
PHP tool Actions\
v1.0.0
Latest
Star (9)

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.

PHP tool Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

PHP tool Actions\
v1.0.0
Latest

PHP tool Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.