From 47c76af810a129fa5795d16a926148d2e8e67c58 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 27 Aug 2024 15:22:27 +0545 Subject: [PATCH] chore: install extra components for phpstan v1 --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7804844..7c92c0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,15 +16,18 @@ jobs: coverage: ['pcov'] code-style: ['no'] code-analysis: ['no'] + code-analysis-extensions: ['no'] include: - php-versions: '7.1' coverage: 'none' code-style: 'yes' code-analysis: 'yes' + code-analysis-extensions: 'no' - php-versions: '8.4' coverage: 'pcov' code-style: 'no' code-analysis: 'yes' + code-analysis-extensions: 'yes' steps: - name: Checkout uses: actions/checkout@v4 @@ -53,6 +56,10 @@ jobs: - name: Install composer dependencies run: composer install --no-progress --prefer-dist --optimize-autoloader + - name: Extra components for phpstan v1 + if: matrix.code-analysis-extensions == 'yes' + run: composer require --dev phpstan/phpstan-phpunit phpstan/phpstan-strict-rules phpstan/extension-installer + - name: Code Analysis (PHP CS-Fixer) if: matrix.code-style == 'yes' run: PHP_CS_FIXER_IGNORE_ENV=true php vendor/bin/php-cs-fixer fix --dry-run --diff