[BUGFIX] Avoid notices and use null coalesce #3082
Workflow file for this run
This file contains 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
name: Rector | |
on: | |
pull_request: null | |
jobs: | |
rector: | |
strategy: | |
fail-fast: false | |
matrix: | |
paths: | |
- src tests | |
- rules | |
- config utils | |
runs-on: ubuntu-latest | |
timeout-minutes: 8 | |
if: github.event.pull_request.head.repo.full_name == 'sabbelasichon/typo3-rector' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# Must be used to trigger workflow after push | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- run: echo "run on ${{ github.event.pull_request.head.repo.full_name }}" | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
# PHP 7.4 is required, so Rector's code is PHP 7.4 compatible even after refactoring | |
php-version: 7.4 | |
coverage: none | |
- name: Install Composer dependencies | |
run: composer install --no-progress --ansi | |
## First run Rector - here can't be --dry-run !!! it would stop the job with it and not commit anything in the future | |
- name: Run Rector | |
run: vendor/bin/rector process ${{ matrix.paths }} --ansi | |
- name: Auto commit changes | |
# commit only to core contributors who have repository access | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: '[ci-review] Rector Rectify' |