Skip to content

feat: extend interactive and batch functions with additional paramete… #28

feat: extend interactive and batch functions with additional paramete…

feat: extend interactive and batch functions with additional paramete… #28

Workflow file for this run

name: PHP CS Fixer
on:
push:
branches: [main, master, stable]
jobs:
cs-fixer:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
coverage: none
- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-cs-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-cs-
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Run PHP CS Fixer (check)
run: php vendor/bin/php-cs-fixer fix -v --dry-run --diff --allow-risky=yes