Skip to content

chore(deps): update dependency friendsofphp/php-cs-fixer to v3.45.0 #588

chore(deps): update dependency friendsofphp/php-cs-fixer to v3.45.0

chore(deps): update dependency friendsofphp/php-cs-fixer to v3.45.0 #588

Workflow file for this run

name: Autoformat
on:
pull_request:
push:
jobs:
composer-normalize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: 8.2
- uses: ramsey/composer-install@v2
- run: composer normalize
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Normalize composer.json
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: 8.2
- uses: ramsey/composer-install@v2
- run: composer docs
- uses: creyD/[email protected]
with:
prettier_options: --write --tab-width=2 *.md **/*.md
branch: ${{ github.head_ref }}
commit_message: Prettify docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
php-cs-fixer:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: 8.2
- uses: ramsey/composer-install@v2
- run: vendor/bin/php-cs-fixer fix
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply php-cs-fixer changes