Commit dd277ad 1 parent f26c16e commit dd277ad Copy full SHA for dd277ad
File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -174,28 +174,20 @@ jobs:
174
174
175
175
- name : Run lint
176
176
shell : bash
177
- id : lint
178
- continue-on-error : true
179
177
run : |
180
- npm run lint -- --format=json --output-file reports/lint-report.json
178
+ npm run lint -- --format=json --output-file reports/lint-report.json || true
179
+
181
180
# hack to print results in the console
182
181
node --print "require('./node_modules/eslint/lib/cli-engine/formatters/stylish.js')(require('./reports/lint-report.json'))"
183
182
184
183
- name : Annotate Code Linting Results
185
184
uses : ataylorme/eslint-annotate-action@d57a1193d4c59cbfbf3f86c271f42612f9dbd9e9 # 3.0.0
186
185
with :
187
- report-json : reports/lint-report.json
188
186
fail-on-error : true
189
187
fail-on-warning : true
188
+ markdown-report-on-step-summary : true
190
189
only-pr-files : false
191
-
192
- - name : Fail if lint failed
193
- shell : bash
194
- if : |
195
- steps.lint.outcome != 'success'
196
- run : |
197
- echo "Lint failed"
198
- exit 1;
190
+ report-json : reports/lint-report.json
199
191
200
192
npm-test :
201
193
name : Test the code
You can’t perform that action at this time.
0 commit comments