Update phpstan/phpstan requirement from 2.1.25 to 2.1.28 #56
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: CI | |
on: | |
pull_request: null | |
push: | |
branches: | |
- 1.x | |
schedule: | |
- cron: "45 7 * * 1" | |
jobs: | |
Tests: | |
name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony }}${{ matrix.description }} | |
runs-on: ubuntu-latest | |
env: | |
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=0' | |
strategy: | |
matrix: | |
php: | |
- '8.4' | |
- '8.3' | |
- '8.2' | |
symfony: [''] | |
include: | |
- symfony: '^7.3' | |
php: '8.3' | |
- symfony: '^6.4' | |
php: '8.2' | |
- php: '8.2' | |
dependencies: '--prefer-lowest' | |
env: | |
SYMFONY_DEPRECATIONS_HELPER: 'disabled' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
with: | |
fetch-depth: 2 # needed by codecov sometimes | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: xdebug | |
- name: Restrict Symfony version | |
run: composer require --dev "symfony/symfony:${{ matrix.symfony }}" --no-update | |
if: matrix.symfony | |
- name: Install dependencies | |
uses: "ramsey/composer-install@v3" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: Run tests | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
files: './coverage.xml' | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
SA: | |
strategy: | |
matrix: | |
include: | |
- description: Composer checks | |
script: vendor/bin/composer-dependency-analyser && composer validate | |
- description: Code style | |
script: vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run | |
- description: Rector | |
script: vendor/bin/rector --ansi --dry-run | |
- description: PHPStan | |
script: vendor/bin/phpstan analyze | |
- description: Psalm | |
script: vendor/bin/psalm | |
name: ${{ matrix.description }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
- name: Install dependencies | |
uses: "ramsey/composer-install@v3" | |
- run: ${{ matrix.script }} |