chore(deps-dev): bump pestphp/pest from 2.36.0 to 3.7.1 #718
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: PHP Static Analysis | |
on: | |
pull_request: | |
jobs: | |
detect_php_changes: | |
name: Detect Changes in PHP Files | |
runs-on: ubuntu-latest | |
outputs: | |
php_files_changed: ${{ steps.filter.outputs.php_files }} | |
phpstan_config_changed: ${{ steps.filter.outputs.phpstan_config }} | |
steps: | |
- name: Identify Changed PHP Files | |
uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
php_files: | |
- added|modified: '*.php' | |
phpstan_config: | |
- added|modified: 'phpstan.neon' | |
run_phpstan: | |
name: Run PHPStan Analysis | |
needs: detect_php_changes | |
if: ${{ needs.detect_php_changes.outputs.php_files_changed == 'true' || needs.detect_php_changes.outputs.phpstan_config_changed == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup PHP Environment | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
extensions: dom, curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | |
coverage: none | |
- name: Install Composer Dependencies | |
run: composer install --no-interaction --prefer-dist | |
- name: Run PHPStan | |
run: ./vendor/bin/phpstan analyse --error-format=github |