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:
parent
3e38b34669
commit
86fe1f6403
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user