Remove existing deprecations on the 2.x branch #110
Workflow file for this run
This file contains 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: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '10 6 * * 1' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ['8.1', '8.2', '8.3', '8.4' ] | |
dependency-version: [ prefer-stable ] | |
include: | |
# PHP 8.1 and prefer-lowest result in doctrine/persistence 2.x being used | |
- { php-version: '8.1', dependency-version: prefer-lowest } | |
name: PHP ${{ matrix.php-version }} - ${{ matrix.dependency-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- name: Install dependencies | |
run: composer update --no-interaction --prefer-dist --${{ matrix.dependency-version}} --no-progress --no-suggest | |
- name: Allow self-deprecation notices when testing against ORM 2.0 | |
run: composer show | egrep -q 'doctrine/orm\s+2' && echo "SYMFONY_DEPRECATIONS_HELPER=max[self]=9999" >> "$GITHUB_ENV" || true | |
- name: Run test suite | |
run: vendor/bin/phpunit |