diff --git a/.github/workflows/test-slevomat-coding-standard.yml b/.github/workflows/test-slevomat-coding-standard.yml index b7d81438..cc9e1b0b 100644 --- a/.github/workflows/test-slevomat-coding-standard.yml +++ b/.github/workflows/test-slevomat-coding-standard.yml @@ -32,7 +32,7 @@ jobs: with: repository: slevomat/coding-standard path: slevomat-cs - ref: 8.7.1 + ref: 710c256bf3f0f696ec8d4f9d2218321c3eb0f7d2 - name: "Install PHP" uses: "shivammathur/setup-php@v2" @@ -40,6 +40,10 @@ jobs: coverage: "none" php-version: "${{ matrix.php-version }}" + - name: "Unset platform" + working-directory: slevomat-cs + run: "composer config --unset platform" + - name: "Install dependencies" working-directory: slevomat-cs run: "composer install --no-interaction --no-progress" @@ -56,12 +60,14 @@ jobs: - name: "Tests" working-directory: slevomat-cs - run: "bin/phpunit" + run: "bin/phpunit --no-coverage" - name: "PHPStan" + if: matrix.php-version == '8.0' || matrix.php-version == '8.1' || matrix.php-version == '8.2' working-directory: slevomat-cs run: "bin/phpstan analyse -c build/PHPStan/phpstan.neon" - name: "PHPStan in tests" + if: matrix.php-version == '8.0' || matrix.php-version == '8.1' || matrix.php-version == '8.2' working-directory: slevomat-cs run: "bin/phpstan analyse -c build/PHPStan/phpstan.tests.neon"