diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8748627..5c51567 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,12 +25,6 @@ jobs: tools: composer:v2 coverage: none - - name: Require PHPSpec 7.1 dependencies - run: | - composer require "phpspec/phpspec:^7.1@dev" --no-interaction --no-update - composer update --prefer-dist --no-interaction --no-progress --ignore-platform-req=php - if: "matrix.php == '8.1'" - - name: Install PHP dependencies run: composer update --prefer-dist --no-interaction --no-progress @@ -56,9 +50,7 @@ jobs: coverage: none - name: Install dependencies - run: | - composer require "sebastian/comparator:^3.0.2" --no-interaction --no-update - composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress + run: composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress - name: Execute tests run: composer test @@ -69,11 +61,13 @@ jobs: strategy: matrix: include: - - symfony: '4' + - symfony: '4.4.*' php-version: '7.1' - - symfony: '5' + - symfony: '5.4.*' php-version: '7.4' - - symfony: '6' + - symfony: '6.4.*' + php-version: '8.2' + - symfony: '7.0.*' php-version: '8.2' steps: @@ -87,16 +81,13 @@ jobs: tools: composer:v2 coverage: none - - name: Pin old packages - run: composer require "phpspec/phpspec:^2.5.8" --no-interaction --no-update - if: "matrix.symfony == '2'" - - name: Install dependencies + env: + SYMFONY_REQUIRE: ${{ matrix.symfony }} run: | - composer config --no-plugins allow-plugins.symfony/flex true - composer require --no-update --no-interaction --no-progress symfony/flex - composer config extra.symfony.require ${{ matrix.symfony}} - composer update --prefer-dist --no-interaction --prefer-stable --prefer-lowest --no-progress + composer global config --no-plugins allow-plugins.symfony/flex true + composer global require --no-progress --no-scripts --no-plugins symfony/flex + composer update --prefer-dist --no-interaction --prefer-stable --no-progress - name: Execute tests run: composer test