https://github.com/mileschou/php-tools-action
PHP tool integrate in GitHub Actions.
https://github.com/mileschou/php-tools-action
actions php
Last synced: 3 months ago
JSON representation
PHP tool integrate in GitHub Actions.
- Host: GitHub
- URL: https://github.com/mileschou/php-tools-action
- Owner: MilesChou
- License: mit
- Created: 2019-11-17T14:42:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-19T17:45:51.000Z (about 2 years ago)
- Last Synced: 2025-04-13T13:03:54.866Z (3 months ago)
- Topics: actions, php
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP tool action
[](https://github.com/MilesChou/php-tools-action/releases)
[](LICENSE)
[](https://github.com/MilesChou/php-tools-action/actions)PHP tool integrate in GitHub Actions.
## Usage
Following is some example.
### `phpcs`
> See https://github.com/squizlabs/PHP_CodeSniffer
Run with default config.
```yaml
- uses: MilesChou/php-tools-action/phpcs@master
```With another PHP version
```yaml
- uses: MilesChou/php-tools-action/5.5/phpcs@master
```With args
```yaml
- uses: MilesChou/php-tools-action/phpcs@master
with:
args: some.php
```### `phpmd`
> See https://github.com/phpmd/phpmd
Run with default config.
```yaml
- uses: MilesChou/php-tools-action/phpmd@master
```With another PHP version
```yaml
- uses: MilesChou/php-tools-action/5.6/phpmd@master
```With args
```yaml
- uses: MilesChou/php-tools-action/phpmd@master
with:
args: some.php
```### `phpmetrics`
> See https://github.com/phpmetrics/PhpMetrics
Run with default config.
```yaml
- uses: MilesChou/php-tools-action/phpmetrics@master
```With another PHP version
```yaml
- uses: MilesChou/php-tools-action/7.0/phpmetrics@master
```With args
```yaml
- uses: MilesChou/php-tools-action/phpmetrics@master
with:
args: some.php
```### `phpstan`
> See https://github.com/phpstan/phpstan
Run with default config.
```yaml
- uses: MilesChou/php-tools-action/phpstan@master
```With args
```yaml
- 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
```yaml
- uses: MilesChou/php-tools-action/phpunit@master
```With another PHP version
```yaml
- uses: MilesChou/php-tools-action/7.2/phpunit@master
```With args
```yaml
- uses: MilesChou/php-tools-action/phpunit@master
with:
args: --configuration my-phpunit.xml
```With PHPUnit version
```yaml
- uses: MilesChou/php-tools-action/phpunit@master
with:
phpunit_version: 7.5.0
```## Credits
* [MilesChou](https://github.com/MilesChou)
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.