Runs PHPStan static analysis for Shopware extensions.
- Creates PHPStan configuration file
- Sets up caching for PHPStan results
- Builds PHPStan bootstrap
- Runs PHPStan analysis
| Input | Description | Required | Default |
|---|---|---|---|
extensionName |
Your extension name | Yes | - |
cacheDir |
PHPStan cache directory | No | $GITHUB_WORKSPACE/var/phpstan |
errorFormat |
PHPStan error format | No | github |
jobs:
phpstan:
uses: shopware/github-actions/phpstan@main
with:
extensionName: MyExtensionNamejobs:
phpstan:
uses: shopware/github-actions/phpstan@main
with:
extensionName: MyExtensionName
cacheDir: ./cache/phpstan- Your extension must have a
phpstan.neon.distfile in the plugin root directory
Example phpstan.neon.dist:
parameters:
level: max
paths:
- src