Merge pull request #105 from tanhongit/main #12
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, pull_request] | |
jobs: | |
phpstan: | |
runs-on: ubuntu-latest | |
name: PHPStan - P${{ matrix.php }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
php: [ '8.1', '8.2', '8.3' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
composer install --no-interaction --no-progress --no-suggest | |
- name: Run PHPStan | |
run: | | |
composer analyse --error-format=github |