Skip to content

Commit e88b165

Browse files
committed
Fix up CI
1 parent 874f698 commit e88b165

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
run: composer stan-setup
102102

103103
- name: Run PHP CodeSniffer
104-
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr
104+
run: composer cs-check
105105

106106
- name: Run phpstan
107107
if: success() || failure()

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
"@cs-check",
7373
"@test"
7474
],
75-
"cs-check": "phpcs -p -v --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
76-
"cs-fix": "phpcbf -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
75+
"cs-check": "phpcs",
76+
"cs-fix": "phpcbf",
7777
"test": "phpunit",
7878
"stan": "phpstan analyse && psalm",
7979
"phpstan": "phpstan analyse",

phpcs.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="CakePHP Bake">
3+
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer" />
4+
<arg value="nps"/>
5+
6+
<file>src/</file>
7+
<file>tests/</file>
8+
9+
<rule ref="CakePHP" />
10+
11+
<exclude-pattern>*/templates/*</exclude-pattern>
12+
</ruleset>

0 commit comments

Comments
 (0)