diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8336a0d..fb6e40c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,10 +6,12 @@ on: jobs: PHPUnit: - runs-on: ubuntu-latest + name: PHPUnit (PHP ${{ matrix.php }}) + runs-on: ubuntu-20.04 strategy: matrix: php: + - 8.0 - 7.4 - 7.3 - 7.2 @@ -31,6 +33,15 @@ jobs: - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy if: ${{ matrix.php < 7.3 }} - run: composer build + - run: composer require symfony/console:^6.0 --dry-run --working-dir=tests/install-as-dep + if: ${{ matrix.php >= 8.0 }} + - run: composer require symfony/console:^5.0 --dry-run --working-dir=tests/install-as-dep + if: ${{ matrix.php >= 7.2 }} + - run: composer require symfony/console:^4.0 --dry-run --working-dir=tests/install-as-dep + if: ${{ matrix.php >= 7.1 && matrix.php < 8.0 }} + - run: composer require symfony/console:^3.0 --dry-run --working-dir=tests/install-as-dep + if: ${{ matrix.php >= 5.5 && matrix.php < 8.0 }} + - run: composer install --dry-run --working-dir=tests/install-as-dep PHPUnit-hhvm: name: PHPUnit (HHVM) @@ -42,13 +53,4 @@ jobs: version: lts-3.30 - run: hhvm $(which composer) install - run: hhvm vendor/bin/phpunit - - Install-with-Symfony-4: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 7.3 - run: composer install --dry-run --working-dir=tests/install-as-dep diff --git a/composer.json b/composer.json index 6b5d477..93a2898 100644 --- a/composer.json +++ b/composer.json @@ -13,9 +13,9 @@ "require": { "php": ">=5.3.6", "knplabs/packagist-api": "^1.0", - "symfony/console": "^5.0 || ^4.0 || ^3.0 || ^2.5", - "symfony/finder": "^5.0 || ^4.0 || ^3.0 || ^2.5", - "symfony/process": "^5.0 || ^4.0 || ^3.0 || ^2.5" + "symfony/console": "^6.0 || ^5.0 || ^4.0 || ^3.0 || ^2.5", + "symfony/finder": "^6.0 || ^5.0 || ^4.0 || ^3.0 || ^2.5", + "symfony/process": "^6.0 || ^5.0 || ^4.0 || ^3.0 || ^2.5" }, "require-dev": { "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.36" diff --git a/tests/install-as-dep/composer.json b/tests/install-as-dep/composer.json index 7d0ab2f..e1bc438 100644 --- a/tests/install-as-dep/composer.json +++ b/tests/install-as-dep/composer.json @@ -1,6 +1,6 @@ { "require": { - "symfony/console": "^4.0" + "symfony/console": "*" }, "require-dev": { "clue/phar-composer": "*@dev"