Skip to content

Commit b5fedc0

Browse files
committed
Add CS fixer CI workflow
1 parent ed3be1b commit b5fedc0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/cs-fix.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on:
2+
push:
3+
branches:
4+
- '*'
5+
6+
name: Fix Code Style
7+
8+
jobs:
9+
cs-fix:
10+
permissions:
11+
contents: write
12+
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
->include(__DIR__ . '/config')
1111
->include(__DIR__ . '/tests')
1212
->include(__DIR__ . '/rector.php')
13+
->allowRisky(false)
1314
->build();

0 commit comments

Comments
 (0)