Skip to content

Commit b5f5bba

Browse files
committed
Add workflows
0 parents  commit b5f5bba

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

workflows/style.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check & fix styling
2+
3+
on: workflow_call
4+
5+
jobs:
6+
php-cs-fixer:
7+
runs-on: self-hosted
8+
container: setupphp/node:latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Run PHP CS Fixer
14+
uses: docker://oskarstark/php-cs-fixer-ga
15+
with:
16+
args: --config=.php-cs-fixer.dist.php
17+
18+
- name: Commit changes
19+
uses: stefanzweifel/git-auto-commit-action@v4
20+
with:
21+
commit_message: Fix styling

0 commit comments

Comments
 (0)