Skip to content

Commit

Permalink
Fix up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 17, 2023
1 parent 874f698 commit e88b165
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
run: composer stan-setup

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

- name: Run phpstan
if: success() || failure()
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"@cs-check",
"@test"
],
"cs-check": "phpcs -p -v --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
"cs-fix": "phpcbf -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit",
"stan": "phpstan analyse && psalm",
"phpstan": "phpstan analyse",
Expand Down
12 changes: 12 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<ruleset name="CakePHP Bake">
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer" />
<arg value="nps"/>

<file>src/</file>
<file>tests/</file>

<rule ref="CakePHP" />

<exclude-pattern>*/templates/*</exclude-pattern>
</ruleset>

0 comments on commit e88b165

Please sign in to comment.