From 5946319ca7dbfa25d2ba949e382900a4299ff7c1 Mon Sep 17 00:00:00 2001 From: jrenaudo Date: Thu, 15 Aug 2024 18:15:28 +0200 Subject: [PATCH] Improve the supported versions --- .github/workflows/testing-and-cs.yaml | 25 +++++++++++++++++++++++-- composer.json | 4 ++-- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testing-and-cs.yaml b/.github/workflows/testing-and-cs.yaml index ce38724..de6e316 100644 --- a/.github/workflows/testing-and-cs.yaml +++ b/.github/workflows/testing-and-cs.yaml @@ -44,7 +44,7 @@ jobs: fail-fast: false matrix: php: ["8.0", "8.1"] - composer: ["2.0", "2.1", "2.2", "2.3"] + composer: ["2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7"] symfony: ["^5.4", "^6.0"] steps: - name: Checkout repository @@ -58,9 +58,30 @@ jobs: - run: composer install - run: vendor/bin/phpunit + PHPUnit-Symfony7: + name: PHPUnit testing + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: ["8.2"] + composer: ["2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7"] + symfony: ["^7.0"] + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: 'Unit testing' + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: composer:${{ matrix.composer }} + - run: composer require "symfony/finder:${{ matrix.symfony }}" "symfony/filesystem:${{ matrix.symfony }}" + - run: composer install + - run: vendor/bin/phpunit + BuildDone: name: PHP full build - needs: [PHPCS, PHPUnit-Symfony45, PHPUnit-Symfony56] + needs: [PHPCS, PHPUnit-Symfony45, PHPUnit-Symfony56, PHPUnit-Symfony7] runs-on: ubuntu-latest steps: - run: "echo build done" diff --git a/composer.json b/composer.json index 1cbbba4..88007df 100644 --- a/composer.json +++ b/composer.json @@ -19,8 +19,8 @@ "ext-zip": "*", "composer-plugin-api": "^1.1|^2.0", "guzzlehttp/guzzle": "^6.0|^7.0", - "symfony/finder": "^4.0|^5.0|^6.0", - "symfony/filesystem": "^4.0|^5.0|^6.0" + "symfony/finder": "^4.0|^5.0|^6.0|^7.0", + "symfony/filesystem": "^4.0|^5.0|^6.0|^7.0" }, "extra": { "class": "Elendev\\ComposerPush\\Plugin"