- Added badges. #6
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: | |
strategy: | |
matrix: | |
php: ["8.1"] | |
laravel: ["^10.0"] | |
fail-fast: false | |
name: "P${{ matrix.php }} - L${{ matrix.laravel }}" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout code" | |
uses: "actions/checkout@v3" | |
- name: "Setup PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php }}" | |
extensions: "dom, curl, libxml, mbstring, zip, fileinfo" | |
coverage: "none" | |
- name: "Change Composer config minimum-stability" | |
run: "composer config minimum-stability stable" | |
- name: "Change Composer config prefer-stable" | |
run: "composer config prefer-stable false" | |
- name: "Install Dependencies" | |
run: "composer install --prefer-dist --no-interaction" | |
- name: "Run PHPStan" | |
run: "vendor/bin/phpstan analyze" |