]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add a check for fixes in the psalm baseline
authorMorris Jobke <hey@morrisjobke.de>
Tue, 18 Aug 2020 07:09:59 +0000 (09:09 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 18 Aug 2020 11:01:05 +0000 (13:01 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
.github/workflows/static-code-analysis.yml

index 5633c3abc29aa7010159ffa7c3a96dada3ed5e00..bd7476df1ec5b0d24616680af30d84f43510fc4f 100644 (file)
@@ -19,4 +19,7 @@ jobs:
             - name: Psalm
               uses: docker://jakzal/phpqa:php7.4-alpine
               with:
-                  args: psalm --monochrome --no-progress --output-format=text
+                args: psalm --monochrome --no-progress --output-format=text --update-baseline
+            - name: Check for changes in Psalm baseline
+              run: |
+                bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in Psalm baseline' && git status && git diff && exit 1 )"