Skip to content

Bump phpunit/phpunit from 9.6.15 to 10.5.8 #77

Bump phpunit/phpunit from 9.6.15 to 10.5.8

Bump phpunit/phpunit from 9.6.15 to 10.5.8 #77

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.2'
- '8.3'
steps:
- name: Checkout
uses: actions/checkout@v4
- 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@v39
- 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}