refactor(audit): Extract ATNA logging (#11069) #156
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: Rector PHP Analysis | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - rel-* | |
| pull_request: | |
| branches: | |
| - master | |
| - rel-* | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.number || github.run_id }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| rector: | |
| name: Rector PHP Analysis | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Single-element matrix provides named variable and job title | |
| php-version: ['8.4'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP and Composer | |
| uses: ./.github/actions/setup-php-composer | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| - name: Rector Cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: /tmp/rector | |
| key: ${{ runner.os }}-rector-${{ hashFiles('rector.php', 'composer.lock') }}-${{ github.run_id }} | |
| restore-keys: ${{ runner.os }}-rector-${{ hashFiles('rector.php', 'composer.lock') }}- | |
| - name: Create Rector cache directory | |
| run: mkdir -p /tmp/rector | |
| - name: Rector List Rules | |
| run: vendor/bin/rector list-rules | |
| - name: Rector Dry Run | |
| run: vendor/bin/rector process --dry-run |