feat: Test Rector to upgrade code for PHP 8.1 #3
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: PHP Rector | |
on: | |
push: | |
branches: | |
- master | |
- 2.x | |
paths: | |
- '**.php' | |
- '**composer.json' | |
pull_request: | |
branches: | |
- master | |
- 2.x | |
paths: | |
- '**.php' | |
- '**composer.json' | |
types: | |
- opened | |
- synchronize | |
- ready_for_review | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
php-cs: | |
name: PHP Rector | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
- name: Run Rector checks | |
if: steps.changed-files.outputs.all_changed_files != '' | |
run: ./vendor/bin/rector process --dry-run ${{ steps.changed-files.outputs.files }} |