diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1ea4d30..ccd7dc6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,7 +10,7 @@ on: jobs: Tests: - name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony }}${{ matrix.description }} + name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-version }}${{ matrix.description }} runs-on: ubuntu-latest env: SYMFONY_DEPRECATIONS_HELPER: 'max[self]=0' @@ -20,13 +20,16 @@ jobs: - '8.4' - '8.3' - '8.2' - symfony: [''] + symfony-version: [''] include: - php: '8.5' composer_options: '--ignore-platform-req=php+' - - symfony: '^7.3' + - symfony-version: '^8.0.0-BETA1' + composer-minimum-stability: 'beta' + php: '8.4' + - symfony-version: '^7.3' php: '8.3' - - symfony: '^6.4' + - symfony-version: '^6.4' php: '8.2' - php: '8.2' dependencies: 'prefer-lowest' @@ -43,14 +46,19 @@ jobs: with: php-version: ${{ matrix.php }} coverage: xdebug - - name: Restrict Symfony version - run: composer require --dev "symfony/symfony:${{ matrix.symfony }}" --no-update - if: matrix.symfony + tools: flex + - name: Configure Composer minimum-stability + if: matrix.composer-minimum-stability + run: composer config minimum-stability ${{ matrix.composer-minimum-stability }} + - name: Remove Composer unneeded dependencies + run: composer remove --dev --no-update vimeo/psalm psalm/plugin-phpunit facile-it/facile-coding-standard - name: Install dependencies uses: "ramsey/composer-install@v3" with: composer-options: ${{ matrix.composer_options }} dependency-versions: "${{ matrix.dependencies }}" + env: + SYMFONY_REQUIRE: ${{ matrix.symfony-version }} - name: Run tests run: vendor/bin/phpunit --coverage-clover=coverage.xml - name: Upload code coverage diff --git a/composer.json b/composer.json index c6a81e4..76a3e6a 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "require": { "php": "^8.2", "ext-pcntl": "*", - "symfony/console": "^6.4 || ^7.0" + "symfony/console": "^6.4 || ^7.0 || ^8.0" }, "require-dev": { "facile-it/facile-coding-standard": "^1.2", @@ -46,8 +46,8 @@ "psalm/plugin-phpunit": "0.19.3", "rector/rector": "2.2.7", "shipmonk/composer-dependency-analyser": "^1.8", - "symfony/phpunit-bridge": "^6.4 || ^7.0", - "symfony/process": "^6.4 || ^7.0", + "symfony/phpunit-bridge": "^6.4 || ^7.0 || ^8.0", + "symfony/process": "^6.4 || ^7.0 || ^8.0", "vimeo/psalm": "^6" } } diff --git a/tests/Stub/console b/tests/Stub/console index 40e6375..f7fa277 100755 --- a/tests/Stub/console +++ b/tests/Stub/console @@ -14,5 +14,5 @@ require __DIR__.'/../../vendor/autoload.php'; $input = new ArgvInput(); $application = new Application('Stub application'); -$application->add(new StubTerminableCommand()); +$application->addCommands([new StubTerminableCommand()]); $application->run($input);