Skip to content

Bump phpstan/phpstan from 1.10.33 to 1.10.34 #34

Bump phpstan/phpstan from 1.10.33 to 1.10.34

Bump phpstan/phpstan from 1.10.33 to 1.10.34 #34

Workflow file for this run

name: PHPCS
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
phpcs:
name: PHP CS Fixer
runs-on: ubuntu-latest
strategy:
matrix:
php-versions:
- '8.1'
- '8.2'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v38
- name: PHP CS Fixer
run: |
CHANGED_FILES=$(echo "${{ steps.changed-files.outputs.all_changed_and_modified_files }}" | tr ' ' '\n')
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}"); else EXTRA_ARGS=''; fi
PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --diff --using-cache=no ${EXTRA_ARGS}