chore: fix psalm errors #249
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: fix-style | |
on: [push] | |
jobs: | |
cs-fix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get branch names | |
id: branch-name | |
uses: tj-actions/branch-names@v8 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
- name: Install dependencies | |
run: composer install | |
- name: Fix style | |
run: ./vendor/bin/php-cs-fixer fix --allow-risky=yes --using-cache=no | |
- name: Commit style fixes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Apply php-cs-fixer changes |