Skip to content

Commit 272798a

Browse files
committed
Update scripts
1 parent f27cf3d commit 272798a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
- name: Install Dependencies
2626
run: composer update --no-interaction --no-progress
2727

28-
- name: Run PHPCS
29-
run: composer run cs
28+
- name: Run cs fixer
29+
run: composer run cs-dry-run
3030

3131
- name: Run PHPStan
3232
run: composer run static

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
"psr-4": { "PhpSchool\\CliMenuTest\\": "test/" }
3838
},
3939
"scripts" : {
40+
"cs-dry-run" : [
41+
"php-cs-fixer check src --rules=@PSR12",
42+
"php-cs-fixer check test --rules=@PSR12"
43+
],
4044
"cs" : [
4145
"php-cs-fixer fix src --rules=@PSR12",
4246
"php-cs-fixer fix test --rules=@PSR12"

0 commit comments

Comments
 (0)