Skip to content

Commit 6606249

Browse files
committed
Merge branch '4.6'
2 parents d6c9d1d + 6787763 commit 6606249

File tree

4 files changed

+1211
-0
lines changed

4 files changed

+1211
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ jobs:
3333
- name: Run code style check
3434
run: composer run-script check-cs -- --format=checkstyle | cs2pr
3535

36+
phpstan:
37+
name: Run PHPStan analysis
38+
runs-on: "ubuntu-24.04"
39+
strategy:
40+
matrix:
41+
php:
42+
- '8.3'
43+
steps:
44+
- uses: actions/checkout@v4
45+
46+
- name: Setup PHP Action
47+
uses: shivammathur/setup-php@v2
48+
with:
49+
php-version: ${{ matrix.php }}
50+
coverage: none
51+
extensions: 'pdo_sqlite, gd'
52+
tools: cs2pr
53+
54+
- uses: "ramsey/composer-install@v3"
55+
with:
56+
dependency-versions: "highest"
57+
58+
- name: Run PHPStan analysis
59+
run: composer run-script phpstan
60+
3661
rector:
3762
name: Run rector
3863
runs-on: "ubuntu-22.04"

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
"ibexa/rector": "~5.0.x-dev",
3737
"matthiasnoback/symfony-dependency-injection-test": "^5.0",
3838
"phpspec/phpspec": "^7.1",
39+
"phpstan/phpstan": "^2.0",
40+
"phpstan/phpstan-phpunit": "^2.0",
41+
"phpstan/phpstan-symfony": "^2.0",
3942
"phpunit/phpunit": "^9.6",
4043
"symfony/phpunit-bridge": "^7.2"
4144
},
@@ -57,6 +60,7 @@
5760
"unit": "phpunit -c phpunit.xml",
5861
"spec": "phpspec run --format=pretty",
5962
"check-cs": "@fix-cs --dry-run",
63+
"phpstan": "phpstan analyse",
6064
"test": [
6165
"@unit",
6266
"@spec"

0 commit comments

Comments
 (0)