Skip to content

[PHP]: Update friendsofphp/php-cs-fixer requirement in /vendor-bin/phpcs #1695

[PHP]: Update friendsofphp/php-cs-fixer requirement in /vendor-bin/phpcs

[PHP]: Update friendsofphp/php-cs-fixer requirement in /vendor-bin/phpcs #1695

Workflow file for this run

name: Phan
on: [ push ]
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
phan:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [ '8.2', '8.3' ]
symfony: [ '~5.4', '~6.4', '~7.0' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@2.30.4
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
extensions: ast
- name: Fix Symfony version
run: |
composer req symfony/flex --no-update
composer config extra.symfony.require "${{ matrix.symfony }}"
composer config --no-plugins allow-plugins.symfony/flex true
- name: Remove Rector
run: |
composer rem rector/rector --dev --no-update
- name: Install Composer deps
uses: ramsey/composer-install@v3
with:
composer-options: --no-scripts
- name: Update Composer deps (with Flex)
# The second update is to make Flex able to do its job
run: |
composer update --no-interaction --no-scripts
- name: Install Composer bin PHPUnit
uses: ramsey/composer-install@v3
with:
working-directory: './vendor-bin/phpunit'
- name: Install Composer bin Phan
uses: ramsey/composer-install@v3
with:
working-directory: './vendor-bin/phan'
- name: Run Phan
run: |
./vendor-bin/phan/vendor/bin/phan --no-progress-bar --dead-code-detection --load-baseline .baseline-phan.php