From 9e9a6c3838f13d04c5ca126c4379978fe8f2fa95 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 25 Oct 2021 23:41:13 +0200 Subject: [PATCH] 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 ``` --- .github/workflows/tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 25295ebd1..9b5e9d03c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,16 +58,16 @@ jobs: - run: npm install - name: Check JavaScript syntax - run: npm run eslint + run: npm run --silent eslint - name: Check Markdown syntax - run: npm run markdownlint + run: npm run --silent markdownlint - 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 - run: npm run stylelint + run: npm run --silent stylelint # Shell tests