9 if: github.repository_owner == 'dokuwiki'
10 runs-on: ubuntu-latest
13 uses: actions/checkout@v4
18 uses: shivammathur/setup-php@v2
25 composer install --no-interaction --no-progress --no-suggest --prefer-dist
28 uses: actions/cache@v3
30 path: _test/.rector-cache
31 key: ${{ runner.os }}-rector-${{ hashFiles('_test/rector.php') }}
34 run: ./_test/vendor/bin/rector process --config _test/rector.php --no-diffs
36 - name: Run PHP CodeSniffer autofixing
37 continue-on-error: true # even if not all errors are fixed, we want to create a PR
38 run: ./_test/vendor/bin/phpcbf --standard=_test/phpcs_MigrationAdjustments.xml
40 - name: Create Pull Request
41 uses: peter-evans/create-pull-request@v6
43 commit-message: "🤖 Rector and PHPCS fixes"
44 title: "🤖 Automatic code style fixes"
46 These changes were made automatically by running rector and phpcbf.
48 Please carefully check the changes before merging. Please note that unit tests are not run for automated pull requests - so if in doubt, manually test the branch before merging.
50 If you disagree with the changes, simply clean the code yourself and create a new pull request. This PR automatically closes when no more changes are suggested by rector and phpcbf.