Skip to content

Commit f1e076a

Browse files
authored
E2E must fail on internal errors (#303)
1 parent 606582e commit f1e076a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/e2e.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ jobs:
6262
6363
-
6464
name: Run analysis
65-
run: |
66-
${{ matrix.executable || 'vendor/bin/phpstan' }} analyse ${{ matrix.args }} -vvv --ansi --error-format=prettyJson | \
67-
jq -e '.files[] | .messages[] | select(.identifier | test("^shipmonk\\.dead"))' && exit 1 || exit 0
65+
continue-on-error: true
66+
run: ${{ matrix.executable || 'vendor/bin/phpstan' }} analyse ${{ matrix.args }} -vvv --ansi --error-format=prettyJson > /tmp/phpstan-output.json
67+
68+
-
69+
name: Check for internal errors
70+
run: jq -e '.errors[]' /tmp/phpstan-output.json && exit 1 || exit 0
71+
72+
-
73+
name: Check for dead code errors
74+
run: jq -e '.files[] | .messages[] | select(.identifier | test("^shipmonk\\.dead"))' /tmp/phpstan-output.json && exit 1 || exit 0

0 commit comments

Comments
 (0)