https://github.com/firehed/lint-php-action
https://github.com/firehed/lint-php-action
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/firehed/lint-php-action
- Owner: Firehed
- Created: 2022-03-28T00:04:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-11T20:55:36.000Z (about 4 years ago)
- Last Synced: 2025-08-04T21:54:44.740Z (11 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `lint-php-action`
Runs PHP's built-in syntax check on your source code.
Adds error annotations on any files with problems.
## Inputs
| Input | Required | Default | Description |
|---|---|---|---|
| `php-version` | no | `latest` | What version pf PHP to test with. Any version supported by [`shivammathur/setup-php`](https://github.com/shivammathur/setup-php#tada-php-support) should work. |
| `file-extensions` | no | `php` | Comma-separated list of PHP file extensions (e.g. `php, inc`) |
## Example
See [`self-test.yml`](https://github.com/Firehed/lint-php-action/blob/main/.github/workflows/self-test.yml) for up-to-date examples.
```yaml
name: Lint
on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: firehed/lint-php-action@v1
```