Skip to content

Commit e9ff73f

Browse files
committed
Fix minor CI/CD bug.
1 parent bb37d83 commit e9ff73f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ jobs:
4848
run: composer lint
4949

5050
- name: Check coding convention
51-
run: composer check
51+
run: composer format-check
52+
53+
- name: Check code refactoring rules
54+
run: composer check-refactor
5255

5356
- name: Security check
5457
run: composer audit

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@
8585
}
8686
},
8787
"scripts": {
88-
"format-check": "php-cs-fixer check",
8988
"lint": "phplint",
9089
"refactor": "rector process",
91-
"check-refactor": "rector --dry-run",
90+
"refactor-check": "rector --dry-run",
91+
"format-check": "php-cs-fixer check",
9292
"reformat": "php-cs-fixer fix",
9393
"test": "phpunit --configuration phpunit.xml"
9494
},
9595
"scripts-descriptions": {
96-
"format-check": "Check coding style issues.",
9796
"lint": "Check PHP files for syntax errors.",
9897
"refactor": "Apply code refactoring.",
99-
"check-refactor": "Check code refactoring rules.",
98+
"refactor-check": "Check code refactoring rules.",
99+
"format-check": "Check coding style issues.",
100100
"reformat": "Fix coding style issues.",
101101
"test": "Run all tests."
102102
}

0 commit comments

Comments
 (0)