Skip to content

Commit

Permalink
chore: install extra components for phpstan v1
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Aug 27, 2024
1 parent 618f178 commit 467bfe3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 467bfe3

Please sign in to comment.