Skip to content

Commit e27d90a

Browse files
author
Cristoforo Cervino
committed
add symfony 8
1 parent 934c619 commit e27d90a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
php-version: ['8.2', '8.4', '8.5']
15-
symfony-version: ['5.4.*', '6.4.*', '7.0.*']
15+
symfony-version: ['5.4.*', '6.4.*', '7.0.*', '8.0.*']
1616
doctrine-orm-version: ['2.20.*', '3.0.*']
1717
exclude:
1818
# Doctrine ORM 3.0 requires PHP 8.4+
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
php-version: ${{ matrix.php-version }}
3131
extensions: mbstring, xml, ctype, iconv, intl, json, pdo_sqlite, sqlite3
32-
coverage: ${{ matrix.php-version == '8.5' && matrix.symfony-version == '7.0.*' && matrix.doctrine-orm-version == '3.0.*' && 'pcov' || 'none' }}
32+
coverage: ${{ matrix.php-version == '8.5' && (matrix.symfony-version == '7.0.*' || matrix.symfony-version == '8.0.*') && matrix.doctrine-orm-version == '3.0.*' && 'pcov' || 'none' }}
3333

3434
- name: Constrain Symfony version
3535
run: |
@@ -53,14 +53,14 @@ jobs:
5353
run: vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --using-cache=no
5454

5555
- name: Run PHPStan
56-
if: matrix.php-version == '8.5' && matrix.symfony-version == '7.0.*' && matrix.doctrine-orm-version == '3.0.*'
56+
if: matrix.php-version == '8.5' && (matrix.symfony-version == '7.0.*' || matrix.symfony-version == '8.0.*') && matrix.doctrine-orm-version == '3.0.*'
5757
run: vendor/bin/phpstan analyse src tests --configuration=phpstan.neon --memory-limit=1G
5858

5959
- name: Run PHPUnit tests
60-
run: vendor/bin/phpunit ${{ matrix.php-version == '8.5' && matrix.symfony-version == '7.0.*' && matrix.doctrine-orm-version == '3.0.*' && '--coverage-clover coverage.xml' || '' }}
60+
run: vendor/bin/phpunit ${{ matrix.php-version == '8.5' && (matrix.symfony-version == '7.0.*' || matrix.symfony-version == '8.0.*') && matrix.doctrine-orm-version == '3.0.*' && '--coverage-clover coverage.xml' || '' }}
6161

6262
- name: Upload coverage to Codecov
63-
if: matrix.php-version == '8.5' && matrix.symfony-version == '7.0.*' && matrix.doctrine-orm-version == '3.0.*'
63+
if: matrix.php-version == '8.5' && (matrix.symfony-version == '7.0.*' || matrix.symfony-version == '8.0.*') && matrix.doctrine-orm-version == '3.0.*'
6464
uses: codecov/codecov-action@v4
6565
with:
6666
files: ./coverage.xml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
#### Symfony Bundle - [AndanteProject](https://github.com/andanteproject)
44
[![Latest Version](https://img.shields.io/github/release/andanteproject/timestampable-bundle.svg)](https://github.com/andanteproject/timestampable-bundle/releases)
55
![Github actions](https://github.com/andanteproject/timestampable-bundle/actions/workflows/ci.yml/badge.svg?branch=main)
6-
![Framework](https://img.shields.io/badge/Symfony-4.x|5.x|6.x|7.x-informational?Style=flat&logo=symfony)
6+
![Framework](https://img.shields.io/badge/Symfony-5.x|6.x|7.x|8.x-informational?Style=flat&logo=symfony)
77
![Php8](https://img.shields.io/badge/PHP-%208.x-informational?style=flat&logo=php)
88
![PhpStan](https://img.shields.io/badge/PHPStan-Level%208-success?style=flat&logo=php)
99

1010
A Symfony Bundle to handle entity `createdAt` and `updatedAt` dates with Doctrine. 🕰
1111

1212
## Requirements
13-
Symfony 4.x-7.x and PHP 8.2.
13+
Symfony 5.x–8.x and PHP 8.2.
1414

1515
## Install
1616
Via [Composer](https://getcomposer.org/):

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
],
2929
"require": {
3030
"php": "^8.2",
31-
"symfony/framework-bundle": "^5.0 | ^6.0 | ^7.0",
31+
"symfony/framework-bundle": "^5.0 | ^6.0 | ^7.0 | ^8.0",
3232
"doctrine/common": "^2.13 || ^3.0",
3333
"doctrine/doctrine-bundle": "^2.10 || ^3.0",
3434
"doctrine/event-manager": "^1.2 | ^2.0",
3535
"doctrine/orm": "^2.15.3 || ^3.0",
36-
"symfony/clock": "^6.2 | ^7.0"
36+
"symfony/clock": "^6.2 | ^7.0 | ^8.0"
3737
},
3838
"require-dev": {
3939
"ext-json": "*",

0 commit comments

Comments
 (0)