File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,20 @@ jobs:
103103 - name : Environment Information
104104 run : npx envinfo
105105 - name : Lint JavaScript files
106- run : NODE=$(command -v node) make lint-js
106+ run : |
107+ NODE=$(command -v node) make lint-js && true
108+ EXIT_CODE="$?"
109+ if [ "$EXIT_CODE" != "0" ]
110+ then
111+ echo
112+ echo 'ERROR: The JavaScript lint validation failed (the errors are logged above).'
113+ echo ' Please fix the lint errors.'
114+ echo ' Run:'
115+ echo ' make lint-js-fix'
116+ echo ' to fix the auto-fixable lint issues.'
117+ echo
118+ exit "$EXIT_CODE"
119+ fi
107120 - name : Get release version numbers
108121 if : ${{ github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }}
109122 id : get-released-versions
You can’t perform that action at this time.
0 commit comments