Merge pull request #46 from giggsey/dependabot/github_actions/codecov… #115
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: 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" |