Skip to content

Commit

Permalink
Update phplint task & run on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Feb 28, 2024
1 parent 7e70a51 commit 643b33a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
- 'composer.json'
- 'composer.lock'
pull_request:
branches:
- trunk
# Only run if PHP-related files changed.
paths:
- '.github/workflows/main.yml'
Expand Down Expand Up @@ -49,4 +47,8 @@ jobs:
- name: Composer Install
run: composer install --no-interaction --no-progress
- name: PHP Lint
run: composer lint
id: phplint
run: composer lint -- --no-cache --report-full --report-checkstyle=./phpcs-report.xml
- name: Show PHPCS results in PR
if: ${{ always() && steps.phplint.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml

0 comments on commit 643b33a

Please sign in to comment.