Create a plugin and add on packagist #2
Workflow file for this run
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: Format code | |
on: | |
pull_request: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
coverage: none | |
tools: composer | |
- name: composer install | |
run: composer install --prefer-dist --no-suggest --no-progress | |
- name: format | |
run: ./vendor/bin/php-cs-fixer fix src --rules=@PhpCsFixer,-yoda_style,-concat_space | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Format code | |