1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
name: PHP CS Fixer
on:
push:
branches:
- 'main'
pull_request:
paths:
- '**.php'
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
php-cs-fixer:
name: "PHP CS Fixer"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- uses: "ramsey/composer-install@v3"
with:
dependency-versions: highest
- name: Run PHP CS Fixer
run: "composer run-script cs"
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: ":art: Fix code styling"
|