From 517a9bd4d76be1a76b6442143ed42c88be26c4db Mon Sep 17 00:00:00 2001 From: Romain Monteil Date: Fri, 9 May 2025 10:49:17 +0200 Subject: [PATCH 1/2] :arrow_down: Lower PHP requirement to 8.1 --- .github/workflows/ci.yml | 32 ++++++++++++++------------------ README.md | 2 +- composer.json | 4 ++-- docs/index.md | 2 +- 4 files changed, 18 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac7c67d..529eb72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,37 +10,33 @@ jobs: runs-on: ubuntu-latest strategy: + max-parallel: 10 fail-fast: false matrix: - php-version: [ '8.2', '8.3', '8.4' ] + php-version: [ '8.1', '8.2', '8.3', '8.4' ] + symfony-version: [ '6.4.*', '7.2.*' ] + exclude: + - php-version: '8.1' + symfony-version: '7.2.*' steps: - uses: actions/checkout@v4 - - name: php-setup + - name: 'Set up PHP' uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} coverage: xdebug - - name: composer-validate - run: composer validate - - - name: composer-cache - id: composer-cache - uses: actions/cache@v4 + - name: 'Install Composer dependencies' + env: + SYMFONY_REQUIRE: ${{ matrix.symfony-version }} + uses: ramsey/composer-install@v3 with: - path: vendor - key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.php-version }}-composer- - - - name: composer-install - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress --no-suggest + composer-options: '--optimize-autoloader' - - name: php-cs-fixer + - name: 'Run PHP-CS-Fixer' run: PHP_CS_FIXER_IGNORE_ENV=1 composer cs - - name: phpunit + - name: 'Run PHPUnit' run: composer test diff --git a/README.md b/README.md index a776fbb..a00de0c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Tests](https://img.shields.io/github/actions/workflow/status/tales-from-a-dev/flowbite-bundle/ci.yml?label=tests&style=for-the-badge)](https://github.com/tales-from-a-dev/flowbite-bundle/actions/workflows/ci.yml) -![PHP Version](https://img.shields.io/badge/php->=8.2-4f5b93.svg?style=for-the-badge) +![PHP Version](https://img.shields.io/badge/php->=8.1-4f5b93.svg?style=for-the-badge) ![Symfony Version](https://img.shields.io/badge/symfony->=6.4-000.svg?style=for-the-badge) [![Flowbite Version](https://img.shields.io/badge/flowbite->=1.6-1c64f2.svg?style=for-the-badge)](https://flowbite.com) [![Packagist Version](https://img.shields.io/packagist/v/tales-from-a-dev/flowbite-bundle?style=for-the-badge)](https://packagist.org/packages/tales-from-a-dev/flowbite-bundle) diff --git a/composer.json b/composer.json index 43a372e..1ab3af0 100644 --- a/composer.json +++ b/composer.json @@ -18,10 +18,10 @@ } ], "require": { - "php": ">=8.2", + "php": ">=8.1", "symfony/http-kernel": "^6.4 || ^7.0", "symfony/twig-bridge": "^6.4 || ^7.0", - "tales-from-a-dev/twig-tailwind-extra": "^0.3" + "tales-from-a-dev/twig-tailwind-extra": "^0.4" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.15", diff --git a/docs/index.md b/docs/index.md index e75c8a2..534b74d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,7 @@ ## Prerequisites -This bundle requires **PHP 8.2+**, **Symfony 6.4+** and **Flowbite 1.6+**. +This bundle requires **PHP 8.1+**, **Symfony 6.4+** and **Flowbite 1.6+**. ## Installation From 892537dc2026737dd8293d64a0acfe1719495c36 Mon Sep 17 00:00:00 2001 From: Romain Monteil Date: Fri, 9 May 2025 10:51:02 +0200 Subject: [PATCH 2/2] fixup! :arrow_down: Lower PHP requirement to 8.1 --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 529eb72..cd2fa72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ on: jobs: tests: + name: tests (PHP ${{ matrix.php-version }}) (Symfony ${{ matrix.symfony-version }}) runs-on: ubuntu-latest