File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 77jobs :
88
99 psalm :
10- name : Psalm Static Analysis
10+ name : Run Analysis
1111 runs-on : ubuntu-latest
12+ continue-on-error : true
13+ outputs :
14+ exit-code : ${{ steps.analysis.outputs.EXIT_CODE }}
1215 steps :
1316 - name : Checkout code
1417 uses : actions/checkout@v2
1720 run : composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
1821
1922 - name : Run Psalm
20- run : vendor/bin/psalm
23+ id : analysis
24+ run : |
25+ vendor/bin/psalm
26+ echo EXIT_CODE=$? >> $GITHUB_OUTPUT
27+ exit 0;
28+
29+
30+ # Since GitHub Actions for some reason doesn't support exiting with warnings, we work around this by
31+ # adding a second job. If the first job fails, this one won't run, thus resulting with a skipped status.
32+ report-psalm :
33+ name : Psalm Static Analysis
34+ runs-on : ubuntu-latest
35+ needs : psalm
36+ if : needs.psalm.outputs.exit-code == 0
37+ steps :
38+ - name : Report analysis passed
39+ run : exit 0;
You can’t perform that action at this time.
0 commit comments