Repository navigation
Code quality #19
Workflow file for this run
This file contains hidden or 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 | |
| paths: | |
| - "**.php" | |
| - "**composer.json" | |
| pull_request: | |
| branches: | |
| - master | |
| 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@v6 | |
| - name: Install dependencies | |
| uses: ./.github/actions/setup | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@v47 | |
| - name: Run Rector checks | |
| if: steps.changed-files.outputs.all_changed_files != '' | |
| run: ./vendor/bin/rector process --dry-run ${{ steps.changed-files.outputs.files }} |