File tree Expand file tree Collapse file tree 5 files changed +30
-18
lines changed
Expand file tree Collapse file tree 5 files changed +30
-18
lines changed Original file line number Diff line number Diff line change 1313permissions :
1414 contents : write
1515
16+ concurrency :
17+ group : ${{ github.head_ref || github.ref || github.run_id }}_php_cs_fixer
18+ cancel-in-progress : true
19+
1620jobs :
17- php-cs-fixer :
21+ lint :
1822 runs-on : ubuntu-latest
19-
2023 steps :
21- - name : Checkout code
22- uses : actions/checkout@v3
23- - name : Run PHP CS Fixer
24- uses : docker://oskarstark/php-cs-fixer-ga
24+ - uses : actions/checkout@v4
25+
26+ - name : Setup PHP
27+ uses : shivammathur/setup-php@v2
2528 with :
26- args : --config=.php-cs-fixer.dist.php --allow-risky=yes
27- - name : Commit changes
28- uses : stefanzweifel/git-auto-commit-action@v4
29+ php-version : ' 8.2'
30+
31+ - name : Install Dependencies
32+ run : |
33+ composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
34+
35+ - name : Run PHP CS Fixer
36+ run : ./vendor/bin/php-cs-fixer fix --allow-risky=yes
37+
38+ - name : Commit Changes
39+ uses : stefanzweifel/git-auto-commit-action@v5
2940 with :
3041 commit_message : 🪄 Code Style Fixes
42+ commit_options : ' --no-verify'
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ jobs:
2020 fail-fast : true
2121 matrix :
2222 os : [ ubuntu-latest, windows-latest ]
23- php : [ 8.1 , 8.2 ]
23+ php : [ 8.2 , 8.3, 8.4 ]
2424 stability : [ prefer-lowest, prefer-stable ]
2525
2626 name : P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
2727
2828 steps :
2929 - name : Checkout code
30- uses : actions/checkout@v3
30+ uses : actions/checkout@v5
3131
3232 - name : Setup PHP
3333 uses : shivammathur/setup-php@v2
Original file line number Diff line number Diff line change 44.php-cs-fixer.cache
55.phpunit.result.cache
66tests /cache
7+ .phpunit.cache
Original file line number Diff line number Diff line change 1717 ],
1818 "minimum-stability" : " stable" ,
1919 "require" : {
20- "php" : " ^8.1 " ,
20+ "php" : " ^8.2 " ,
2121 "saloonphp/saloon" : " ^3.0"
2222 },
2323 "require-dev" : {
2424 "friendsofphp/php-cs-fixer" : " ^3.13" ,
25- "pestphp/pest" : " ^2.3" ,
26- "spatie/ray" : " ^1.34.2" ,
25+ "pestphp/pest" : " ^2.3 || ^4.0" ,
2726 "league/flysystem" : " ^3.12.2" ,
28- "orchestra/testbench" : " ^8.0 " ,
27+ "orchestra/testbench" : " ^9.15 || ^10.7 " ,
2928 "psr/simple-cache" : " ^3.0"
3029 },
3130 "scripts" : {
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ class CachedResponse
1515 * Constructor
1616 */
1717 public function __construct (
18- readonly public RecordedResponse $ recordedResponse ,
19- readonly public DateTimeImmutable $ expiresAt ,
20- readonly public int $ ttl ,
18+ public readonly RecordedResponse $ recordedResponse ,
19+ public readonly DateTimeImmutable $ expiresAt ,
20+ public readonly int $ ttl ,
2121 ) {
2222 //
2323 }
You can’t perform that action at this time.
0 commit comments