Skip to content

Downgrade just PHPStan et al. to the lowest version #1302

Downgrade just PHPStan et al. to the lowest version

Downgrade just PHPStan et al. to the lowest version #1302

Workflow file for this run

name: PHP Tests
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '24 20 * * *'
jobs:
phpunit:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
php-version:
- "8.4"
operating-system:
- ubuntu-latest
update-options:
- ""
- "--prefer-lowest phpstan/phpstan phpstan/phpstan-deprecation-rules --with-all-dependencies"
steps:
- uses: actions/checkout@v4
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
- name: PHP info
run: |
php -v
php -m
- name: Install dependencies
run: composer update --no-progress --no-interaction ${{ matrix.update-options }}
- name: Run tests
run: composer phpunit