Skip to content

Commit a9ed9ec

Browse files
authored
Create php-cs-fixer.yml
1 parent 22128a7 commit a9ed9ec

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
name: Check & fix styling
3+
4+
on: [push]
5+
6+
jobs:
7+
php-cs-fixer:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
with:
14+
ref: ${{ github.head_ref }}
15+
16+
- name: Run PHP CS Fixer
17+
uses: docker://oskarstark/php-cs-fixer-ga
18+
with:
19+
args: --config=.php-cs-fixer.php --allow-risky=yes
20+
21+
- name: Commit changes
22+
uses: stefanzweifel/git-auto-commit-action@v4
23+
with:
24+
commit_message: Fix styling

0 commit comments

Comments
 (0)