From 4dab7f87794767ebaa900d0deaa9f15e6d40addd Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Mon, 13 Dec 2021 14:13:56 +0100 Subject: [PATCH] Run Psalm with --php-version --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a2b741..e3b2681 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: tools: composer:v2, flex - name: Validate composer.json - run: composer validate --no-check-lock + run: composer validate --strict - name: Remove analysis dependencies run: composer remove --dev --no-update sylius-labs/coding-standard @@ -48,8 +48,12 @@ jobs: env: SYMFONY_REQUIRE: "${{ matrix.symfony-version }}" - - name: Run analysis - run: composer analyse + - name: Run coding standard + run: vendor/bin/ecs check --ansi --no-progress-bar src tests + if: matrix.symfony-version != '6.0.*' + + - name: Run Psalm + run: vendor/bin/psalm src --no-progress --php-version="${{ matrix.php-version }}" - name: Run tests run: composer test