Skip to content

chore: update dev tools and allow Symfony 8 #7

chore: update dev tools and allow Symfony 8

chore: update dev tools and allow Symfony 8 #7

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