chore: update dev tools and allow Symfony 8 #7
Workflow file for this run
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: Static Analysis | |
| on: [push, pull_request] | |
| jobs: | |
| unit-tests: | |
| name: PHP ${{ matrix.php }} - PHPStan | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ['8.4', '8.5'] | |
| steps: | |
| # Setup | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: PHP setup | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mbstring, xml, ctype, iconv, intl | |
| coverage: xdebug | |
| # Cache Composer dependencies | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist | |
| # Run PHPStan | |
| - name: Run PHPStan | |
| run: php vendor/bin/phpstan |