From bd57c17f2743198b66848bc9b344cff11241d7bf Mon Sep 17 00:00:00 2001 From: Hristo Popov Date: Sat, 30 Sep 2023 09:07:40 +0300 Subject: [PATCH 1/2] Change required php version to >=7.2.5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 7e3ac0749dbf625539405e40fda65fdc80aa79b4 Mon Sep 17 00:00:00 2001 From: Hristo Popov Date: Sat, 30 Sep 2023 09:53:55 +0300 Subject: [PATCH 2/2] Add PHP version 7.2, 7.4 to CI --- .github/workflows/ci.yaml | 42 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) 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'