Skip to content

Create a plugin and add on packagist #2

Create a plugin and add on packagist

Create a plugin and add on packagist #2

Workflow file for this run

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