diff --git a/.github/workflows/basics.yml b/.github/workflows/basics.yml index 0da06d3f..1ae494f9 100644 --- a/.github/workflows/basics.yml +++ b/.github/workflows/basics.yml @@ -39,7 +39,7 @@ jobs: # Show XML violations inline in the file diff. # @link https://github.com/marketplace/actions/xmllint-problem-matcher - - uses: korelstar/xmllint-problem-matcher@v1.1 + - uses: korelstar/xmllint-problem-matcher@v1 # Validate the composer.json file. # @link https://getcomposer.org/doc/03-cli.md#validate @@ -60,10 +60,11 @@ jobs: # Check the code-style consistency of the PHP files. - name: Check PHP code style - continue-on-error: true + id: phpcs run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml - name: Show PHPCS results in PR + if: ${{ always() && steps.phpcs.outcome == 'failure' }} run: cs2pr ./phpcs-report.xml # Check that the sniffs available are feature complete.