| 
 | 1 | +name: Test  | 
 | 2 | + | 
 | 3 | +on:  | 
 | 4 | +  push:  | 
 | 5 | +    branches:  | 
 | 6 | +      - main  | 
 | 7 | +  pull_request:  | 
 | 8 | + | 
 | 9 | +permissions:  | 
 | 10 | +  contents: read  | 
 | 11 | + | 
 | 12 | +jobs:  | 
 | 13 | +  test:  | 
 | 14 | +    name: PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }} + ${{ matrix.variant }}  | 
 | 15 | +    runs-on: ubuntu-latest  | 
 | 16 | +    continue-on-error: ${{ matrix.allowed-to-fail }}  | 
 | 17 | +    env:  | 
 | 18 | +      SYMFONY_REQUIRE: ${{matrix.symfony-require}}  | 
 | 19 | + | 
 | 20 | +    strategy:  | 
 | 21 | +      matrix:  | 
 | 22 | +        php-version:  | 
 | 23 | +          - '8.2'  | 
 | 24 | +          - '8.3'  | 
 | 25 | +        dependencies: [highest]  | 
 | 26 | +        allowed-to-fail: [false]  | 
 | 27 | +        symfony-require: ['']  | 
 | 28 | +        variant: [normal]  | 
 | 29 | +        include:  | 
 | 30 | +          - php-version: '8.2'  | 
 | 31 | +            dependencies: highest  | 
 | 32 | +            allowed-to-fail: false  | 
 | 33 | +            symfony-require: 6.4.*  | 
 | 34 | +            variant: symfony/symfony:"6.4.*"  | 
 | 35 | +          - php-version: '8.2'  | 
 | 36 | +            dependencies: highest  | 
 | 37 | +            allowed-to-fail: false  | 
 | 38 | +            symfony-require: 7.1.*  | 
 | 39 | +            variant: symfony/symfony:"7.1.*"  | 
 | 40 | +          - php-version: '8.3'  | 
 | 41 | +            dependencies: highest  | 
 | 42 | +            allowed-to-fail: false  | 
 | 43 | +            symfony-require: 6.4.*  | 
 | 44 | +            variant: symfony/symfony:"6.4.*"  | 
 | 45 | +          - php-version: '8.3'  | 
 | 46 | +            dependencies: highest  | 
 | 47 | +            allowed-to-fail: false  | 
 | 48 | +            symfony-require: 7.1.*  | 
 | 49 | +            variant: symfony/symfony:"7.1.*"  | 
 | 50 | + | 
 | 51 | +    steps:  | 
 | 52 | +      - name: Checkout  | 
 | 53 | +        uses: actions/checkout@v4  | 
 | 54 | +      - name: Install PHP with extensions  | 
 | 55 | +        uses: shivammathur/setup-php@v2  | 
 | 56 | +        with:  | 
 | 57 | +          php-version: ${{ matrix.php-version }}  | 
 | 58 | +          coverage: pcov  | 
 | 59 | +          tools: composer:v2, flex  | 
 | 60 | +      - name: Add PHPUnit matcher  | 
 | 61 | +        run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"  | 
 | 62 | +      - name: Install variant  | 
 | 63 | +        if: matrix.variant != 'normal' && !startsWith(matrix.variant, 'symfony/symfony')  | 
 | 64 | +        run: composer require ${{ matrix.variant }} --no-update  | 
 | 65 | +      - name: Install Composer dependencies (${{ matrix.dependencies }})  | 
 | 66 | +        uses: ramsey/composer-install@v3  | 
 | 67 | +        with:  | 
 | 68 | +          dependency-versions: ${{ matrix.dependencies }}  | 
 | 69 | +      - name: Run Tests with coverage  | 
 | 70 | +        run: vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml  | 
 | 71 | +      #- name: Send coverage to Codecov  | 
 | 72 | +      #  uses: codecov/codecov-action@v4  | 
 | 73 | +      #  with:  | 
 | 74 | +      #    files: build/logs/clover.xml  | 
0 commit comments