Skip to content

Commit f70da91

Browse files
authored
Merge pull request #34 from tales-from-a-dev/tech/issue-000-php-81
⬇️ Lower PHP requirement to 8.1
2 parents cfc2fbe + 892537d commit f70da91

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,38 @@ on:
66

77
jobs:
88
tests:
9+
name: tests (PHP ${{ matrix.php-version }}) (Symfony ${{ matrix.symfony-version }})
910

1011
runs-on: ubuntu-latest
1112

1213
strategy:
14+
max-parallel: 10
1315
fail-fast: false
1416
matrix:
15-
php-version: [ '8.2', '8.3', '8.4' ]
17+
php-version: [ '8.1', '8.2', '8.3', '8.4' ]
18+
symfony-version: [ '6.4.*', '7.2.*' ]
19+
exclude:
20+
- php-version: '8.1'
21+
symfony-version: '7.2.*'
1622

1723
steps:
1824
- uses: actions/checkout@v4
1925

20-
- name: php-setup
26+
- name: 'Set up PHP'
2127
uses: shivammathur/setup-php@v2
2228
with:
2329
php-version: ${{ matrix.php-version }}
2430
coverage: xdebug
2531

26-
- name: composer-validate
27-
run: composer validate
28-
29-
- name: composer-cache
30-
id: composer-cache
31-
uses: actions/cache@v4
32+
- name: 'Install Composer dependencies'
33+
env:
34+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
35+
uses: ramsey/composer-install@v3
3236
with:
33-
path: vendor
34-
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
35-
restore-keys: |
36-
${{ runner.os }}-${{ matrix.php-version }}-composer-
37-
38-
- name: composer-install
39-
if: steps.composer-cache.outputs.cache-hit != 'true'
40-
run: composer install --prefer-dist --no-progress --no-suggest
37+
composer-options: '--optimize-autoloader'
4138

42-
- name: php-cs-fixer
39+
- name: 'Run PHP-CS-Fixer'
4340
run: PHP_CS_FIXER_IGNORE_ENV=1 composer cs
4441

45-
- name: phpunit
42+
- name: 'Run PHPUnit'
4643
run: composer test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![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)
2-
![PHP Version](https://img.shields.io/badge/php->=8.2-4f5b93.svg?style=for-the-badge)
2+
![PHP Version](https://img.shields.io/badge/php->=8.1-4f5b93.svg?style=for-the-badge)
33
![Symfony Version](https://img.shields.io/badge/symfony->=6.4-000.svg?style=for-the-badge)
44
[![Flowbite Version](https://img.shields.io/badge/flowbite->=1.6-1c64f2.svg?style=for-the-badge)](https://flowbite.com)
55
[![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)

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
}
1919
],
2020
"require": {
21-
"php": ">=8.2",
21+
"php": ">=8.1",
2222
"symfony/http-kernel": "^6.4 || ^7.0",
2323
"symfony/twig-bridge": "^6.4 || ^7.0",
24-
"tales-from-a-dev/twig-tailwind-extra": "^0.3"
24+
"tales-from-a-dev/twig-tailwind-extra": "^0.4"
2525
},
2626
"require-dev": {
2727
"friendsofphp/php-cs-fixer": "^3.15",

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Prerequisites
44

5-
This bundle requires **PHP 8.2+**, **Symfony 6.4+** and **Flowbite 1.6+**.
5+
This bundle requires **PHP 8.1+**, **Symfony 6.4+** and **Flowbite 1.6+**.
66

77
## Installation
88

0 commit comments

Comments
 (0)