fix(ci): move ignore_warnings_on_exit into phpcs.xml.dist to unblock pipeline
--runtime-set ignore_warnings_on_exit 1 in ci.yml was not taking effect; pipeline has been failing on PHPCS warnings since run #76 despite all violations being intentionally downgraded to <type>warning</type>. Fix: add <config name="ignore_warnings_on_exit" value="1"/> directly to .phpcs.xml.dist so it is applied at the ruleset level.
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
|
||||
|
||||
- name: Run PHPCS
|
||||
run: vendor/bin/phpcs --standard=.phpcs.xml.dist --runtime-set ignore_warnings_on_exit 1
|
||||
run: vendor/bin/phpcs --standard=.phpcs.xml.dist
|
||||
|
||||
# ── PHPUnit Tests ────────────────────────────────────────────────
|
||||
phpunit:
|
||||
|
||||
@@ -87,4 +87,7 @@
|
||||
|
||||
<!-- Minimum WP version supported -->
|
||||
<config name="minimum_wp_version" value="5.8"/>
|
||||
<!-- Warnings are informational — do not fail CI on warnings-only runs -->
|
||||
<config name="ignore_warnings_on_exit" value="1"/>
|
||||
|
||||
</ruleset>
|
||||
|
||||
Reference in New Issue
Block a user