Skip to content

(feat) Add Craft 5

(feat) Add Craft 5 #5

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