Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mileschou/php-tools-action
PHP tool integrate in GitHub Actions.
https://github.com/mileschou/php-tools-action
actions php
Last synced: 2 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-19T17:45:51.000Z (over 1 year ago)
- Last Synced: 2024-10-09T11:58:55.105Z (3 months ago)
- Topics: actions, php
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP tool action
[![GitHub Release](https://img.shields.io/github/tag/MilesChou/php-tools-action.svg)](https://github.com/MilesChou/php-tools-action/releases)
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)
[![](https://github.com/MilesChou/php-tools-action/workflows/Testing/badge.svg)](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.