Skip to content

Commit 47c76af

Browse files
committed
chore: install extra components for phpstan v1
1 parent 618f178 commit 47c76af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ jobs:
1616
coverage: ['pcov']
1717
code-style: ['no']
1818
code-analysis: ['no']
19+
code-analysis-extensions: ['no']
1920
include:
2021
- php-versions: '7.1'
2122
coverage: 'none'
2223
code-style: 'yes'
2324
code-analysis: 'yes'
25+
code-analysis-extensions: 'no'
2426
- php-versions: '8.4'
2527
coverage: 'pcov'
2628
code-style: 'no'
2729
code-analysis: 'yes'
30+
code-analysis-extensions: 'yes'
2831
steps:
2932
- name: Checkout
3033
uses: actions/checkout@v4
@@ -53,6 +56,10 @@ jobs:
5356
- name: Install composer dependencies
5457
run: composer install --no-progress --prefer-dist --optimize-autoloader
5558

59+
- name: Extra components for phpstan v1
60+
if: matrix.code-analysis-extensions == 'yes'
61+
run: composer require --dev phpstan/phpstan-phpunit phpstan/phpstan-strict-rules phpstan/extension-installer
62+
5663
- name: Code Analysis (PHP CS-Fixer)
5764
if: matrix.code-style == 'yes'
5865
run: PHP_CS_FIXER_IGNORE_ENV=true php vendor/bin/php-cs-fixer fix --dry-run --diff

0 commit comments

Comments
 (0)