name: Test

on: [push, pull_request ]

jobs:
    test:
        name: 'PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }} + ${{ matrix.variant }}'
        runs-on: ubuntu-latest

        strategy:
            fail-fast: false
            matrix:
                dependencies:
                    - lowest
                    - highest
                php-version:
                    - '7.2'
                    - '7.3'
                    - '7.4'
                    - '8.0'
                variant: [normal]
                include:
                    - php-version: '7.2'
                      dependencies: highest
                      variant: 'doctrine/orm:~2.5'
                    - php-version: '7.2'
                      dependencies: highest
                      variant: 'doctrine/orm:~2.6'
                    - php-version: '7.2'
                      dependencies: highest
                      variant: 'doctrine/orm:~2.7'
        steps:
            - name: Checkout
              uses: actions/checkout@v2

            - name: Install PHP with extensions
              uses: shivammathur/setup-php@v2
              with:
                  php-version: ${{ matrix.php-version }}
                  tools: composer:v2

            - name: Install variant
              if: matrix.variant != 'normal'
              run: composer require ${{ matrix.variant }} --no-update

            - name: 'Install Composer dependencies (${{ matrix.dependencies }})'
              uses: 'ramsey/composer-install@v1'
              with:
                  dependency-versions: '${{ matrix.dependencies }}'
                  composer-options: '--prefer-dist --prefer-stable'

            - name: Run Tests
              run: composer test

name: Test

on: [push, pull_request ]

jobs:
    test:
        name: 'PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }} + ${{ matrix.variant }}'
        runs-on: ubuntu-latest

        strategy:
            fail-fast: false
            matrix:
                dependencies:
                    - lowest
                    - highest
                php-version:
                    - '7.2'
                    - '7.3'
                    - '7.4'
                    - '8.0'
                variant: [normal]
                include:
                    - php-version: '7.2'
                      dependencies: highest
                      variant: 'doctrine/orm:~2.5'
                    - php-version: '7.2'
                      dependencies: highest
                      variant: 'doctrine/orm:~2.6'
                    - php-version: '7.2'
                      dependencies: highest
                      variant: 'doctrine/orm:~2.7'
                    - php-version: '8.0'
                      dependencies: highest
                      variant: 'doctrine/orm:~2.7 symfony/symfony:^6.0'
        steps:
            - name: Checkout
              uses: actions/checkout@v2

            - name: Install PHP with extensions
              uses: shivammathur/setup-php@v2
              with:
                  php-version: ${{ matrix.php-version }}
                  tools: composer:v2

            - name: Install variant
              if: matrix.variant != 'normal'
              run: composer require ${{ matrix.variant }} --no-update

            - name: 'Install Composer dependencies (${{ matrix.dependencies }})'
              uses: 'ramsey/composer-install@v1'
              with:
                  dependency-versions: '${{ matrix.dependencies }}'
                  composer-options: '--prefer-dist --prefer-stable'

            - name: Run Tests
              run: composer test

Add Symfony 6 compatibility check
Add Symfony 6 compatibility check
