File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,17 +46,28 @@ jobs:
4646 dependency-versions : highest
4747
4848 - name : Run PHPStan analysis
49+ id : phpstan
4950 continue-on-error : true
5051 run : composer phpstan
5152
5253 - name : Run Deptrac analysis
54+ id : deptrac
5355 continue-on-error : true
5456 run : composer deptrac
5557
5658 - name : Run Rector check
59+ id : rector
5760 continue-on-error : true
5861 run : composer check-rector
5962
63+ - name : Fail job if any check failed
64+ if : always()
65+ run : |
66+ if [[ "${{ steps.phpstan.outcome }}" == "failure" || "${{ steps.deptrac.outcome }}" == "failure" || "${{ steps.rector.outcome }}" == "failure" ]]; then
67+ echo "One or more checks failed: PHPStan=${{ steps.phpstan.outcome }}, Deptrac=${{ steps.deptrac.outcome }}, Rector=${{ steps.rector.outcome }}"
68+ exit 1
69+ fi
70+
6071 code-samples-inclusion-check :
6172 name : Check code samples inclusion
6273 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments