1name: PHP Code Style 2 3on: [push, pull_request] 4 5jobs: 6 phpcs: 7 name: PHP CodeSniffer 8 runs-on: ubuntu-latest 9 if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository 10 steps: 11 - uses: actions/checkout@v2 12 13 - name: Setup PHP 14 uses: shivammathur/setup-php@v2 15 with: 16 php-version: '7.4' 17 tools: cs2pr, phpcs 18 19 - name: run PHP codesniffer 20 run: phpcs -q --standard=_test/phpcs_MigrationAdjustments.xml --report=checkstyle | cs2pr 21