Skip to content

Merge pull request #46 from giggsey/dependabot/github_actions/codecov… #115

Merge pull request #46 from giggsey/dependabot/github_actions/codecov…

Merge pull request #46 from giggsey/dependabot/github_actions/codecov… #115

Workflow file for this run

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:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- uses: "ramsey/composer-install@v2"
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"