Skip to content

Commit

Permalink
feat: add php cs fixer checker with workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Oct 31, 2023
1 parent e607c76 commit 8b3a642
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check & fix styling

on: [push]

jobs:
php-cs-fixer:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php-cs-fixer.dist.php --allow-risky=yes

0 comments on commit 8b3a642

Please sign in to comment.