Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 15 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,38 @@ on:

jobs:
tests:
name: tests (PHP ${{ matrix.php-version }}) (Symfony ${{ matrix.symfony-version }})

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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down