open 2.7-dev #521
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHPStan | |
on: | |
push: | |
branches: | |
- main | |
pull_request: null | |
env: | |
CHECKOUT_SUBMODULES: "recursive" | |
jobs: | |
main: | |
name: Execute PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: ${{ env.CHECKOUT_SUBMODULES }} | |
- name: Set-up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: none | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Composer dependencies | |
uses: "ramsey/composer-install@v2" | |
- name: Regenerate Monorepo PHPStan config | |
run: vendor/bin/monorepo-builder merge-phpstan --config=config/monorepo-builder/merge-phpstan.php --ansi | |
- name: Run PHPStan | |
run: vendor/bin/phpstan analyse --ansi |