Skip to content

Commit

Permalink
Ensure PHPCS output is shown in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingdutch committed Jun 23, 2023
1 parent 8e910cd commit 0c3135c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/qualityChecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@ jobs:
run: cp $GITHUB_WORKSPACE/tmp/repository/phpcs.xml phpcs.xml

- name: Run PHPCS checks
id: phpcs
run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml

# https://github.com/staabm/annotate-pull-request-from-checkstyle#using-php_codesniffer
- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml

phpunit:
Expand Down

0 comments on commit 0c3135c

Please sign in to comment.