Skip to content

Commit 7dd9ab3

Browse files
committed
Correctly implemented continue-on-error (#3205)
* Correctly implemented continue-on-error * Fixed issues * Updated baseline
1 parent f0a2f0f commit 7dd9ab3

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/code_samples.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

phpstan-baseline.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)