Skip to content

Add "no_unused_imports" rule to PHP CS Fixer configuration #3

Add "no_unused_imports" rule to PHP CS Fixer configuration

Add "no_unused_imports" rule to PHP CS Fixer configuration #3

Workflow file for this run

name: cs fixer
on:
pull_request_target:
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.VJIK_GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
- name: Run PHP CS Fixer
run: composer cs-fix
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Apply PHP CS Fixer changes (CI)"
file_pattern: '*.php'
disable_globbing: true