Skip to content

Commit 55941b5

Browse files
author
Wout Gevaert
committed
Move dry-run & dir args to workflow
1 parent 85b5d12 commit 55941b5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ jobs:
5656
run: composer update --working-dir ${{ env.INSTALL_PATH }}
5757

5858
- name: Run php-cs-fixer
59-
run: composer php-cs-fixer --working-dir ${{ env.INSTALL_PATH }}
59+
run: |
60+
composer php-cs-fixer --working-dir ${{ env.INSTALL_PATH }} -- --dry-run ./src
61+
composer php-cs-fixer --working-dir ${{ env.INSTALL_PATH }} -- --dry-run ./tests
6062
6163
- name: Run unit tests
6264
run: composer test --working-dir ${{ env.INSTALL_PATH }}

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@
5656
"scripts": {
5757
"test": "phpunit tests/",
5858
"infect": "XDEBUG_MODE=coverage infection --show-mutations",
59-
"php-cs-fixer": [
60-
"php-cs-fixer fix --dry-run --verbose --rules=\"@PSR12,align_multiline_comment,array_indentation,blank_line_before_statement,no_unused_imports,no_useless_else,no_useless_return,ordered_imports,phpdoc_scalar,return_assignment,simplified_if_return,trailing_comma_in_multiline\" ./src",
61-
"php-cs-fixer fix --dry-run --verbose --rules=\"@PSR12,align_multiline_comment,array_indentation,blank_line_before_statement,no_unused_imports,no_useless_else,no_useless_return,ordered_imports,phpdoc_scalar,return_assignment,simplified_if_return,trailing_comma_in_multiline\" ./tests"
62-
]
59+
"php-cs-fixer":
60+
"php-cs-fixer fix --verbose --rules=@PSR12,align_multiline_comment,array_indentation,blank_line_before_statement,no_unused_imports,no_useless_else,no_useless_return,ordered_imports,phpdoc_scalar,return_assignment,simplified_if_return,trailing_comma_in_multiline"
6361
},
6462
"minimum-stability": "stable",
6563
"prefer-stable": true

0 commit comments

Comments
 (0)