fix: tell PHPCS to ignore warnings on exit in CI
PHPCS exits with code 2 when fixable violations exist, even if they are all warnings (0 errors). Add --runtime-set ignore_warnings_on_exit 1 so that warnings are still displayed but don't fail the CI job. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -89,7 +89,7 @@ jobs:
|
|||||||
run: composer install --prefer-dist --no-progress
|
run: composer install --prefer-dist --no-progress
|
||||||
|
|
||||||
- name: Run PHPCS
|
- name: Run PHPCS
|
||||||
run: vendor/bin/phpcs --standard=.phpcs.xml.dist
|
run: vendor/bin/phpcs --standard=.phpcs.xml.dist --runtime-set ignore_warnings_on_exit 1
|
||||||
|
|
||||||
# ── PHPUnit Tests ────────────────────────────────────────────────
|
# ── PHPUnit Tests ────────────────────────────────────────────────
|
||||||
phpunit:
|
phpunit:
|
||||||
|
|||||||
Reference in New Issue
Block a user