]> source.dussan.org Git - nextcloud-server.git/commitdiff
Better psalm CI output 22304/head
authorMorris Jobke <hey@morrisjobke.de>
Wed, 19 Aug 2020 16:12:15 +0000 (18:12 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 19 Aug 2020 16:16:35 +0000 (18:16 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
.github/workflows/static-code-analysis.yml

index f90e102a99d242aede83c0f052dd59fc967393eb..184b58a7472ce8539e4f6c28f99141833981e955 100644 (file)
@@ -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 )"