From e7506ebffb22faf121574f74925cca2899a3e899 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Wed, 31 Jan 2024 10:39:36 +0700 Subject: [PATCH] Run psalm on PHP 8.0, 8.1, 8.2, 8.3 --- .github/workflows/static.yml | 11 ++++++++--- psalm4.xml | 17 +++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 psalm4.xml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 92e84f9b8..bba896424 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: @@ -64,8 +67,10 @@ jobs: FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} - - name: Install dependencies with composer. - 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 000000000..23bfcce17 --- /dev/null +++ b/psalm4.xml @@ -0,0 +1,17 @@ + + + + + + + + +