This repository was archived by the owner on Aug 11, 2026. It is now read-only.
feat: report-redundant-pest-uses #92
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Code Style | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| coverage: none | |
| - name: Cache Composer packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-php-8.2- | |
| - name: Prepare dependencies | |
| run: composer remove laravel/pao --dev --no-interaction --no-update | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Check Rector | |
| run: vendor/bin/rector --dry-run | |
| - name: Check Pint | |
| run: vendor/bin/pint --parallel --test | |
| types: | |
| name: Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| coverage: none | |
| - name: Cache Composer packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-php-8.2- | |
| - name: Prepare dependencies | |
| run: composer remove laravel/pao --dev --no-interaction --no-update | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run PHPStan | |
| run: vendor/bin/phpstan analyse --ansi | |
| tests: | |
| name: Tests (PHP ${{ matrix.php }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.2', '8.3', '8.4', '8.5'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| - name: Cache Composer packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-php-${{ matrix.php }}- | |
| - name: Prepare dependencies | |
| run: | | |
| if [ "${{ matrix.php }}" == "8.2" ]; then | |
| composer remove laravel/pao --dev --no-interaction --no-update | |
| fi | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run tests | |
| run: vendor/bin/pest |