12 uses: actions/checkout@v3
17 uses: shivammathur/setup-php@v2
23 uses: actions/cache@v3
25 path: _test/.rector-cache
26 key: ${{ runner.os }}-rector-${{ hashFiles('_test/rector.php') }}
29 run: rector process --config _test/rector.php --no-diffs
31 - name: Run PHP CodeSniffer autofixing
32 continue-on-error: true # even if not all errors are fixed, we want to create a PR
33 run: phpcbf --standard=_test/phpcs_MigrationAdjustments.xml
35 - name: Create Pull Request
36 uses: peter-evans/create-pull-request@v4
38 commit-message: "🤖 Rector and PHPCS fixes"
39 title: "🤖 Automatic code style fixes"
41 These changes were made automatically by running rector and phpcbf.
43 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.
45 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.