File tree 4 files changed +11
-32
lines changed
4 files changed +11
-32
lines changed Original file line number Diff line number Diff line change 1
1
name : Check code style
2
2
3
- on : [ push, pull_request ]
3
+ on :
4
+ pull_request :
5
+ push :
6
+ paths :
7
+ - ' **.php'
4
8
5
9
jobs :
6
10
php-style :
7
11
runs-on : ubuntu-latest
8
12
9
13
steps :
10
14
- name : Checkout code
11
- uses : actions/checkout@v3
15
+ uses : actions/checkout@v4
12
16
13
17
- name : Check style
14
- uses : docker://oskarstark/php-cs-fixer-ga
18
+ uses : aglipanci/laravel-pint-action@v2
15
19
with :
16
- args : -v --dry-run --using-cache=no
20
+ testMode : true
Original file line number Diff line number Diff line change 2
2
build
3
3
composer.lock
4
4
vendor
5
- .php-cs-fixer.php
6
- .php-cs-fixer.cache
7
5
phpunit.xml
8
6
.phpunit.result.cache
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 23
23
"spatie/laravel-package-tools" : " ^1.15"
24
24
},
25
25
"require-dev" : {
26
- "friendsofphp/php-cs-fixer" : " ^3.8" ,
27
26
"larastan/larastan" : " ^2.9" ,
27
+ "laravel/pint" : " ^1.15" ,
28
28
"orchestra/testbench" : " ^7.0|^8.0|^9.0" ,
29
29
"phpstan/extension-installer" : " ^1.1" ,
30
30
"phpstan/phpstan-deprecation-rules" : " ^1.0" ,
37
37
},
38
38
"scripts" : {
39
39
"analyse" : " vendor/bin/phpstan analyse" ,
40
- "check-style" : " php-cs-fixer fix --dry-run -v " ,
41
- "fix-style" : " php-cs-fixer fix "
40
+ "check-style" : " pint --test " ,
41
+ "fix-style" : " pint "
42
42
},
43
43
"extra" : {
44
44
"branch-alias" : {
You can’t perform that action at this time.
0 commit comments