0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00

GH Actions: harden the workflow against PHPCS ruleset errors

If there is a ruleset error, the `cs2pr` action doesn't receive an `xml` report and exits with a `0` error code, even though the PHPCS run failed (though not on CS errors, but on a ruleset error).

This changes the GH Actions workflow to allow for that situation and still fail the build in that case.
This commit is contained in:
jrfnl 2022-10-23 11:26:12 +02:00
parent 3e38b34669
commit 86fe1f6403
No known key found for this signature in database
GPG Key ID: 88BCD0973A23BCC6

View File

@ -32,10 +32,11 @@ jobs:
uses: "ramsey/composer-install@v2"
- name: Check coding standards
continue-on-error: true
id: phpcs
run: ./vendor/bin/phpcs -s --report-full --report-checkstyle=./phpcs-report.xml
- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml
lint: