From b4d577087e2945a4dc48749b105e587b5778fe3b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Nov 2026 08:32:02 +0000 Subject: [PATCH] ci: print the full PHPCS report alongside cs2pr annotations Write the checkstyle report to a file so the log also shows the readable full report, and run cs2pr on it in a following step that runs even when PHPCS fails. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016QZq4rvW3EzGU1QRh7T7qi --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ee3dd46..d0331cd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,8 +48,14 @@ jobs: - uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0 + # The full report gives a readable list of violations in the log; the checkstyle file feeds cs2pr, + # which turns the same violations into PR annotations even when PHPCS fails the step. - name: Run PHPCS - run: vendor/bin/phpcs -q --report=checkstyle | cs2pr + run: vendor/bin/phpcs -q --report-full --report-checkstyle=phpcs-report.xml + + - name: Annotate PHPCS violations + if: ${{ always() && hashFiles('phpcs-report.xml') != '' }} + run: cs2pr phpcs-report.xml plugin-check: name: Plugin Check