This GitHub Action runs PHPStan for WordPress plugins/themes.
phpstan-config
: Path to the PHPStan configuration file (default:./phpstan.neon
)phpstan-level
: Analysis level (default:max
)
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run WP-Stan
uses: tidschi/wp-stan@v1
with:
phpstan-config: './custom-phpstan.neon'
phpstan-level: '5'