File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,16 +60,26 @@ jobs:
6060 dependency-versions : highest
6161
6262 - name : Run PHPStan analysis
63+ id : phpstan
6364 continue-on-error : true
6465 run : composer phpstan
6566
6667 - if : matrix.php == '8.4' # ibexa/rector supports PHP 8.3 and higher
68+ id : rector
6769 name : Run Rector check
6870 continue-on-error : true
6971 run : |
7072 composer require --dev ibexa/rector:~4.6.x-dev
7173 composer check-rector
7274
75+ - name : Fail job if any check failed
76+ if : always()
77+ run : |
78+ if [[ "${{ steps.phpstan.outcome }}" == "failure" || "${{ steps.rector.outcome }}" == "failure" ]]; then
79+ echo "One or more checks failed: PHPStan=${{ steps.phpstan.outcome }}, Rector=${{ steps.rector.outcome }}"
80+ exit 1
81+ fi
82+
7383 code-samples-inclusion-check :
7484 name : Check code samples inclusion
7585 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -156,18 +156,6 @@ parameters:
156156 count : 1
157157 path : code_samples/api/rest_api/create_image.xml.php
158158
159- -
160- message : ' #^Result of && is always false\.$#'
161- identifier : booleanAnd.alwaysFalse
162- count : 1
163- path : code_samples/api/rest_api/create_image.xml.php
164-
165- -
166- message : ' #^Strict comparison using \=\=\= between ' ' ErrorMessage' ' and ' ' Content' ' will always evaluate to false\.$#'
167- identifier : identical.alwaysFalse
168- count : 1
169- path : code_samples/api/rest_api/create_image.xml.php
170-
171159 -
172160 message : ' #^Method App\\Rest\\Output\\ValueObjectVisitorDispatcher\:\:__construct\(\) has parameter \$visitors with no value type specified in iterable type iterable\.$#'
173161 identifier : missingType.iterableValue
You can’t perform that action at this time.
0 commit comments