small unfinished feature for sneak peak demo #35
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 Code Style Check | |
| on: | |
| - push | |
| jobs: | |
| rector: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| extensions: mbstring, intl | |
| ini-values: post_max_size=256M, max_execution_time=180 | |
| coverage: xdebug | |
| tools: php-cs-fixer, phpunit | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Setup composer cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Install composer dependencies | |
| env: | |
| COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} | |
| run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
| - name: Rector Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: /tmp/rector | |
| key: ${{ runner.os }}-rector-${{ github.run_id }} | |
| restore-keys: ${{ runner.os }}-rector- | |
| - run: mkdir -p /tmp/rector | |
| - name: Rector Dry Run | |
| run: php vendor/bin/rector process --dry-run --config=rector.php |