From 467bfe35af09dcc2acaf2a4f722957892d3d3352 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7804844..bd53147 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,12 @@ 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 config --no-plugins allow-plugins.phpstan/extension-installer true + 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