rozeo / phpstan-github-actions
There is no license information available for the latest version (1.0.0) of this package.
1.0.0
2020-06-23 09:56 UTC
Requires
- guzzlehttp/guzzle: ^6.5
- phpstan/phpstan: ^0.12.30
- symfony/console: ^5.1
This package is auto-updated.
Last update: 2025-04-20 00:21:35 UTC
README
PHPStan support for Github Pull Request On Github Actions
Output Sample #1 (comment)
Setup
- add dependecy in composer.json
"rozeo/phpstan-github-actions": "^1.0.0"
- put
phpstan.neon
setting file on repository root.
touch phpstan.neon
- setting phpstan and add phpstan custom formatter. ex.)
parameters: level: 5 paths: - src services: errorFormatter.markdown: class: Rozeo\PHPStanAction\PHPStanMarkdownFormatter
- add rules on workflow file(based php workflow).
on:
pull_request:
branches:
- branch
~~~
- name: composer install
run: composer install
- name: running phpstan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_URL: ${{ github.event.pull_request.comments_url }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: ./vendor/bin/phpstan-github-actions