From 80056e081a567c46f931342adf5801735905dacd Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 18 Aug 2020 09:09:59 +0200 Subject: Add a check for fixes in the psalm baseline Signed-off-by: Morris Jobke --- .github/workflows/static-code-analysis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index 5633c3abc29..bd7476df1ec 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -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 )" -- cgit v1.2.3