Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading