GitHub Actions cleaner error output (#3938)

Silence irrelevant NPM errors when a test fails. See e.g. https://github.com/FreshRSS/FreshRSS/runs/3999501244?check_suite_focus=true

```text
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! freshrss@ markdownlint: `markdownlint '**/*.md'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the freshrss@ markdownlint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2021-10-25T16_15_34_166Z-debug.log
```
pull/3940/head
Alexandre Alapetite 3 years ago committed by GitHub
parent f3bfe17a39
commit 9e9a6c3838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .github/workflows/tests.yml

@ -58,16 +58,16 @@ jobs:
- run: npm install - run: npm install
- name: Check JavaScript syntax - name: Check JavaScript syntax
run: npm run eslint run: npm run --silent eslint
- name: Check Markdown syntax - name: Check Markdown syntax
run: npm run markdownlint run: npm run --silent markdownlint
- name: Check Right-to-left CSS - name: Check Right-to-left CSS
run: npm run rtlcss && git diff --exit-code run: npm run --silent rtlcss && git diff --exit-code
- name: Check CSS syntax - name: Check CSS syntax
run: npm run stylelint run: npm run --silent stylelint
# Shell tests # Shell tests

Loading…
Cancel
Save