From 8643cf5e9392feb12be76e7ca196f5465ff96a3c Mon Sep 17 00:00:00 2001 From: Tigrov Date: Wed, 31 Jan 2024 10:38:29 +0700 Subject: [PATCH] Run psalm on PHP 8.0, 8.1, 8.2, 8.3 --- .github/workflows/static.yml | 8 ++++++++ psalm4.xml | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 psalm4.xml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 92e84f9b..b7778798 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -36,6 +36,9 @@ jobs: - ubuntu-latest php: + - '8.0' + - '8.1' + - '8.2' - '8.3' steps: @@ -68,4 +71,9 @@ jobs: run: composer update --no-interaction --no-progress --optimize-autoloader --ansi - name: Static analysis. + if: ${{ matrix.php != '8.0' }} run: vendor/bin/psalm --config=${{ inputs.psalm-config }} --shepherd --stats --output-format=github --php-version=${{ matrix.php }} + + - name: Static analysis. + if: ${{ matrix.php == '8.0' }} + run: vendor/bin/psalm --config=psalm4.xml --shepherd --stats --output-format=github --php-version=${{ matrix.php }} diff --git a/psalm4.xml b/psalm4.xml new file mode 100644 index 00000000..10d319ae --- /dev/null +++ b/psalm4.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + +