Fix 365 #3019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the main branch | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [ opened, labeled, synchronize ] | |
| name: Inspections | |
| jobs: | |
| runPHPCSInspection: | |
| if: contains(github.event.pull_request.labels.*.name, 'run analysis') | |
| name: Run PHPCS inspection | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Install Composer | |
| uses: php-actions/composer@v6 | |
| with: | |
| php_version: "8.2" | |
| - name: Check PHPCS | |
| run: composer phpcs | |
| - name: Run PHPCS Fixer | |
| run: composer phpcsfixer | |
| - name: Check Syntax | |
| run: find -L . -path ./vendor -prune -o -path ./tests -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l |