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