diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8da7555..a1fd29a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,7 +7,7 @@ on: - master jobs: - phpunit: + phpunit-sf5: name: "PHPUnit" runs-on: "ubuntu-20.04" @@ -16,6 +16,46 @@ jobs: matrix: symfony-version: - '^5.4' + php-version: + - '7.2.5' + - '7.4' + dependencies: + - "lowest" + - "highest" + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + + - name: Configure symfony version + uses: php-actions/composer@v6 + with: + command: config + args: extra.symfony.require ${{ matrix.symfony-version }} + + - name: "Install dependencies with Composer" + uses: "ramsey/composer-install@v1" + with: + dependency-versions: "${{ matrix.dependencies }}" + composer-options: "${{ matrix.composer-options }}" + + - name: Run tests + run: | + SYMFONY_DEPRECATIONS_HELPER=weak vendor/bin/simple-phpunit ${PHPUNIT_FLAGS} + + phpunit-sf6: + name: "PHPUnit" + runs-on: "ubuntu-20.04" + + strategy: + fail-fast: false + matrix: + symfony-version: - '^6.0' php-version: - '8.1' diff --git a/composer.json b/composer.json index 5f355ce..d59fe9b 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": "^8.1", + "php": ">=7.2.5", "symfony/framework-bundle": "^5.4 || ^6.0 ", "symfony/intl": "^5.4 || ^6.0", "symfony/templating": "^5.4 || ^6.0",