diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index 002ed45c..17aab634 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: ['8.0', '8.1'] + php-version: ['8.1', '8.2', '8.3'] steps: - uses: shivammathur/setup-php@v2 with: @@ -42,23 +42,10 @@ jobs: run: | vendor/bin/atoum -d ./lib/Documents/tests vendor/bin/atoum -f ./lib/EntityGenerator/tests/units/* + vendor/bin/phpunit -v lib/Models/tests - name: Run PHP Code Sniffer run: | - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/DocGenerator/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Documents/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/DtsGenerator/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/EntityGenerator/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Jwt/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Markdown/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Models/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/OpenId/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Random/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizCompatBundle/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizCoreBundle/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizFontBundle/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizRozierBundle/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizUserBundle/src - php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Rozier/src + php -d "memory_limit=-1" vendor/bin/phpcs --report=full -p - name: Run PHP Stan run: | php -d "memory_limit=-1" vendor/bin/phpstan analyse -c phpstan.neon @@ -70,3 +57,4 @@ jobs: php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizRozierBundle/templates php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizFontBundle/templates php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizCoreBundle/templates + php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizTwoFactorBundle/templates diff --git a/composer.json b/composer.json index aa7209ff..52d89ed4 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ ], "type": "project", "require": { - "php": ">=8.0", + "php": ">=8.1", "ext-ctype": "*", "ext-dom": "*", "ext-fileinfo": "*", diff --git a/lib/DocGenerator/composer.json b/lib/DocGenerator/composer.json index 7a285886..5562ecf1 100644 --- a/lib/DocGenerator/composer.json +++ b/lib/DocGenerator/composer.json @@ -3,7 +3,7 @@ "description": "Roadiz sub-package which generates Markdown documentation skeleton based on your schema", "type": "library", "require": { - "php": ">=8.0", + "php": ">=8.1", "roadiz/nodetype-contracts": "~1.1.2", "symfony/translation": "5.4.*", "symfony/http-foundation": "5.4.*" diff --git a/lib/Documents/composer.json b/lib/Documents/composer.json index f136add8..8085823a 100644 --- a/lib/Documents/composer.json +++ b/lib/Documents/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": ">=8.0", + "php": ">=8.1", "ext-json": "*", "ext-gd": "*", "ext-dom": "*", diff --git a/lib/EntityGenerator/composer.json b/lib/EntityGenerator/composer.json index bd4e42d8..c39b11e3 100644 --- a/lib/EntityGenerator/composer.json +++ b/lib/EntityGenerator/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=8.0", + "php": ">=8.1", "ext-json": "*", "roadiz/nodetype-contracts": "~1.1.2", "symfony/string": "5.4.*", diff --git a/lib/Jwt/composer.json b/lib/Jwt/composer.json index a4f16677..7ea71bd2 100644 --- a/lib/Jwt/composer.json +++ b/lib/Jwt/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=8.0", + "php": ">=8.1", "lcobucci/jwt": "^4.1", "guzzlehttp/guzzle": "^7.2.0" }, diff --git a/lib/Markdown/composer.json b/lib/Markdown/composer.json index 61a33e5d..ca57d91a 100644 --- a/lib/Markdown/composer.json +++ b/lib/Markdown/composer.json @@ -3,7 +3,7 @@ "description": "Markdown services and Twig extension for Roadiz", "type": "library", "require": { - "php": ">=8.0", + "php": ">=8.1", "league/commonmark": "^2.2.0", "twig/twig": "^3.1", "doctrine/collections": ">=1.6", diff --git a/lib/Models/composer.json b/lib/Models/composer.json index 3b3d4765..6a4d7985 100644 --- a/lib/Models/composer.json +++ b/lib/Models/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": ">=8.0", + "php": ">=8.1", "doctrine/orm": "^2.14.1 < 2.17", "jms/serializer": "^3.9.0", "symfony/string": "5.4.*", diff --git a/lib/OpenId/composer.json b/lib/OpenId/composer.json index a5c1e771..fb7eaef0 100644 --- a/lib/OpenId/composer.json +++ b/lib/OpenId/composer.json @@ -14,7 +14,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "ext-json": "*", "lcobucci/jwt": "^4.1", "roadiz/jwt": "2.2.x-dev", diff --git a/lib/Random/composer.json b/lib/Random/composer.json index 8d74284a..1bdfecbf 100644 --- a/lib/Random/composer.json +++ b/lib/Random/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=8.0", + "php": ">=8.1", "psr/log": ">=1.1", "ext-openssl": "*" }, diff --git a/lib/RoadizCompatBundle/composer.json b/lib/RoadizCompatBundle/composer.json index 791fa609..2e8284b0 100644 --- a/lib/RoadizCompatBundle/composer.json +++ b/lib/RoadizCompatBundle/composer.json @@ -18,7 +18,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "pimple/pimple": "^3.3.1", "roadiz/core-bundle": "2.2.x-dev", "roadiz/openid": "2.2.x-dev", diff --git a/lib/RoadizCoreBundle/composer.json b/lib/RoadizCoreBundle/composer.json index 161189c5..c9f16532 100644 --- a/lib/RoadizCoreBundle/composer.json +++ b/lib/RoadizCoreBundle/composer.json @@ -19,7 +19,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "ext-ctype": "*", "ext-iconv": "*", "ext-zip": "*", diff --git a/lib/RoadizFontBundle/composer.json b/lib/RoadizFontBundle/composer.json index 26861343..b43feb7d 100644 --- a/lib/RoadizFontBundle/composer.json +++ b/lib/RoadizFontBundle/composer.json @@ -20,7 +20,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "doctrine/annotations": "^1.0", "doctrine/doctrine-bundle": "^2.8.1", "doctrine/doctrine-migrations-bundle": "^3.1", diff --git a/lib/RoadizRozierBundle/composer.json b/lib/RoadizRozierBundle/composer.json index a4503331..22393b69 100644 --- a/lib/RoadizRozierBundle/composer.json +++ b/lib/RoadizRozierBundle/composer.json @@ -19,7 +19,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "symfony/framework-bundle": "5.4.*", "roadiz/core-bundle": "2.2.x-dev", "roadiz/rozier": "2.2.x-dev", diff --git a/lib/RoadizTwoFactorBundle/composer.json b/lib/RoadizTwoFactorBundle/composer.json index f206f570..17b2fdf0 100644 --- a/lib/RoadizTwoFactorBundle/composer.json +++ b/lib/RoadizTwoFactorBundle/composer.json @@ -20,7 +20,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "doctrine/orm": "^2.14.1 < 2.17", "endroid/qr-code": "^4.0", "roadiz/core-bundle": "2.2.x-dev", diff --git a/lib/RoadizUserBundle/composer.json b/lib/RoadizUserBundle/composer.json index 60db17b3..fec92ef0 100644 --- a/lib/RoadizUserBundle/composer.json +++ b/lib/RoadizUserBundle/composer.json @@ -20,7 +20,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "api-platform/core": "~2.7.0", "symfony/framework-bundle": "5.4.*", "symfony/rate-limiter": "5.4.*", diff --git a/lib/Rozier/composer.json b/lib/Rozier/composer.json index ee8417f1..9eadcfe3 100644 --- a/lib/Rozier/composer.json +++ b/lib/Rozier/composer.json @@ -31,7 +31,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=8.0", + "php": ">=8.1", "ext-zip": "*", "doctrine/orm": "^2.14.1 < 2.17", "guzzlehttp/guzzle": "^7.2.0",