Releases: NxtLvLSoftware/run-phpstan-action
Releases · NxtLvLSoftware/run-phpstan-action
v1.0.2
Fix bug that caused phpstan to be invoked with the analyze command only when a path is provided.
v1.0.1
Removes non-essential files from the release build that aren't required for the action to run.
v1.0.0
GitHub action for running PHPStan in actions workflows.
How to use
Simple analysis if php and phpstan is already configured properly in the action environment (in $PATH):
name: My PHP Test Workflow
on: [push]
jobs:
test-code:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: nxtlvlsoftware/run-phpstan-action@v1
with:
analyse: src
config: tests/phpstan/action.phpstan.neon
level: 9Or provide the paths to existing PHPStan and/or php executables:
name: My PHP Test Workflow
on: [push]
jobs:
test-code:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: nxtlvlsoftware/run-phpstan-action@v1
with:
analyse: src
config: tests/phpstan/action.phpstan.neon
level: 9
php: '/path/to/php/bin'
phpstan: '/path/to/phpstan.phar'License
nxtlvlsoftware/run-phpstan-action is open-sourced software licensed under the MIT license.