File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Check & fix styling
1
+ name : Fix PHP code style issues
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' **.php'
4
7
5
8
jobs :
6
- php-cs-fixer :
9
+ php-code-styling :
7
10
runs-on : ubuntu-latest
8
11
9
12
steps :
10
13
- name : Checkout code
11
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v3
12
15
with :
13
16
ref : ${{ github.head_ref }}
14
17
15
- - name : Run PHP CS Fixer
16
- uses : docker://oskarstark/php-cs-fixer-ga
17
- with :
18
- args : --config=.php-cs-fixer.dist.php --allow-risky=yes
18
+ - name : Fix PHP code style issues
19
+
19
20
20
21
- name : Commit changes
21
22
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change 18
18
"php" : " ^8.0"
19
19
},
20
20
"require-dev" : {
21
- "friendsofphp/php-cs-fixer " : " ^3.0 " ,
21
+ "laravel/pint " : " ^1.2 " ,
22
22
"pestphp/pest" : " ^1.20" ,
23
23
"spatie/ray" : " ^1.28"
24
24
},
35
35
"scripts" : {
36
36
"test" : " vendor/bin/pest" ,
37
37
"test-coverage" : " vendor/bin/pest --coverage" ,
38
- "format" : " vendor/bin/php-cs-fixer fix --allow-risky=yes "
38
+ "format" : " vendor/bin/pint "
39
39
},
40
40
"config" : {
41
41
"sort-packages" : true
You can’t perform that action at this time.
0 commit comments