File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP CS Fixer
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ branches :
7
+ - main
8
+
9
+ concurrency :
10
+ group : php-cs-fixer-${{ github.ref_name || github.run_id }}
11
+ cancel-in-progress : true
12
+
13
+ jobs :
14
+
15
+ php-cs-fixer :
16
+ name : PHP CS Fixer ${{ matrix.php }}
17
+ runs-on : ubuntu-latest
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
21
+ php : ['8.2']
22
+
23
+ steps :
24
+ - name : Checkout
25
+ uses : actions/checkout@v3
26
+ with :
27
+ fetch-depth : 1
28
+
29
+ - name : Set up PHP
30
+ uses : shivammathur/setup-php@v2
31
+ with :
32
+ php-version : ${{ matrix.php }}
33
+ tools : cs2pr
34
+
35
+ - name : Install Composer dependencies
36
+ uses : ramsey/composer-install@v2
37
+ with :
38
+ composer-options : " --no-progress --prefer-dist --optimize-autoloader"
39
+
40
+ - name : php-cs-fixer
41
+ run : composer run style:check -- --format=checkstyle | cs2pr
Original file line number Diff line number Diff line change 64
64
}
65
65
},
66
66
"scripts" : {
67
- "style:fix" : " @php php-cs-fixer fix"
67
+ "style:check" : " @php ./vendor/bin/php-cs-fixer fix --dry-run" ,
68
+ "style:fix" : " @php ./vendor/bin/php-cs-fixer fix"
68
69
}
69
70
}
You can’t perform that action at this time.
0 commit comments