Skip to content

Commit a4b0606

Browse files
committed
[TASK] Extend Tests in github actions for newer PHP versions
1 parent 4f5b6d9 commit a4b0606

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/testing.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- 8.1
2424
- 8.2
2525
- 8.3
26+
- 8.4
2627
typoscript-lint:
2728
name: "TypoScript linter"
2829
runs-on: ubuntu-24.04
@@ -44,7 +45,7 @@ jobs:
4445
- name: "Install PHP"
4546
uses: shivammathur/setup-php@v2
4647
with:
47-
php-version: 8.2
48+
php-version: 8.4
4849
- name: "Composer Update"
4950
run: "composer update"
5051
- name: "Run PHP CS Fixer"
@@ -72,3 +73,4 @@ jobs:
7273
php-version:
7374
- 8.2
7475
- 8.3
76+
- 8.4

.project/docker/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM in2code/php-dev:8.2-fpm
1+
FROM in2code/php-dev:8.4-fpm
22

33
COPY zz_xdebug.ini /usr/local/etc/php/conf.d/zz_xdebug.ini
44

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
"codeception/module-asserts": "^3.0",
4545
"codeception/module-phpbrowser": "^3.0",
4646
"codeception/module-webdriver": "^4.0",
47-
"friendsofphp/php-cs-fixer": "^3.10",
47+
"friendsofphp/php-cs-fixer": "^3.84",
4848
"georgringer/news": "^12.0",
4949
"helmich/typo3-typoscript-lint": "^3.1",
5050
"helhum/typo3-console": "^8.2",
5151
"mikey179/vfsstream": "^1.6",
52-
"phpmd/phpmd": "^2.8",
52+
"phpmd/phpmd": "^2.15",
5353
"symfony/config": ">6.2.0",
5454
"squizlabs/php_codesniffer": "^3.5",
5555
"typo3/cms-adminpanel": "^13.3",
@@ -99,7 +99,7 @@
9999
"scripts": {
100100
"docs:render": "docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation",
101101
"test:php:cs": "php-cs-fixer fix --dry-run --config=.project/tests/.php-cs-fixer.php --diff",
102-
"test:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
102+
"test:php:lint": "bash -c \"find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -d error_reporting=E_ALL -d display_errors=1 -l && if find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 php -d error_reporting=E_ALL -l 2>&1 | grep -q 'Deprecated:'; then echo 'Deprecation notices found, failing the build'; exit 1; fi\"",
103103
"test:ts:lint": "typoscript-lint -c .project/tests/typoscript-lint.yml --fail-on-warnings",
104104
"test:unit": "phpunit -c phpunit.xml.dist"
105105
},

0 commit comments

Comments
 (0)