change pmmp version #37
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: PHPStan analysis | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: | |
| - "8.1" | |
| - "8.2" | |
| - "8.3" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: pmmp/setup-php-action@3.2.0 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| install-path: "./bin" | |
| tools: phpstan | |
| pm-version-major: 5 | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: php-${{ matrix.php }}-${{ runner.os }}-php-${{ hashFiles('**/composer.json') }} | |
| - name: update autoload or Install dependencies | |
| run: (test -d vendor && (composer dump-autoload)) || (composer install --prefer-dist --no-progress) | |
| - name: Run PHPStan | |
| run: ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G |