Skip to content

Commit

Permalink
Fix Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Pollastri committed Nov 13, 2023
1 parent 564abb9 commit 00931cb
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
# .github/workflows/lint.yml
name: fix-style

on: [push, pull_request]
on:
push:
pull_request:
paths:
- "**.php"

jobs:
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv

- name: Install Dependencies
run: composer install --prefer-dist

- name: Fix Style
run: ./vendor/bin/php-cs-fixer fix --diff --allow-risky=yes

- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling changes

0 comments on commit 00931cb

Please sign in to comment.