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