v2.0.0: Major Refactor - PSR-4 Autoloading & Performance Optimization #117
This file contains hidden or 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 Static Analysis | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| phpstan: | |
| name: PHPStan Static Analysis | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.1 | |
| tools: composer:v2 | |
| ini-file: production | |
| # Conservative memory settings for reliable CI runs | |
| ini-values: memory_limit=1G, opcache.enable=1, opcache.memory_consumption=32 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install dependencies | |
| run: | | |
| composer install --prefer-dist --no-progress --no-interaction | |
| cd plugin/juanma-jwt-auth-pro | |
| composer install --prefer-dist --no-progress --no-interaction | |
| - name: Run PHPStan (Memory Optimized) | |
| run: vendor/bin/phpstan analyse --memory-limit=1G --no-progress --no-ansi | |
| env: | |
| # Additional environment variables to reduce memory usage | |
| PHPSTAN_PRO_WEB_PORT: 0 |