From 4db7829f43cef3eb615068fbaffba37dadbf2c06 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 19 Aug 2020 18:12:15 +0200 Subject: [PATCH] Better psalm CI output Signed-off-by: Morris Jobke --- .github/workflows/static-code-analysis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index f90e102a99..184b58a747 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -19,7 +19,7 @@ jobs: - name: Psalm uses: docker://jakzal/phpqa:php7.4-alpine with: - args: psalm --monochrome --no-progress --output-format=text --update-baseline + args: psalm --monochrome --no-progress --output-format=text --update-baseline || ( git diff && exit 1 ) - name: Check for changes in Psalm baseline run: | - bash -c "[[ ! \"`git status --porcelain build/psalm-baseline.xml`\" ]] || ( echo 'Uncommited changes in Psalm baseline' && git status && git diff && exit 1 )" + bash -c "[[ ! \"`git status --porcelain build/psalm-baseline.xml`\" ]] || ( echo 'Uncommited changes in Psalm baseline' && git status && git diff build/psalm-baseline.xml && exit 1 )"