Maintenance release 2.0.1: support PHP 8.1–8.4 and Laravel 10–13 #739
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: tests | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Laravel 10 (testbench 8) | |
| - { php: '8.1', laravel: '10.*', testbench: '8.*', os: ubuntu-latest } | |
| - { php: '8.2', laravel: '10.*', testbench: '8.*', os: ubuntu-latest } | |
| - { php: '8.3', laravel: '10.*', testbench: '8.*', os: ubuntu-latest } | |
| # Laravel 11 (testbench 9) | |
| - { php: '8.2', laravel: '11.*', testbench: '9.*', os: ubuntu-latest } | |
| - { php: '8.3', laravel: '11.*', testbench: '9.*', os: ubuntu-latest } | |
| - { php: '8.4', laravel: '11.*', testbench: '9.*', os: ubuntu-latest } | |
| # Laravel 12 (testbench 10) | |
| - { php: '8.2', laravel: '12.*', testbench: '10.*', os: ubuntu-latest } | |
| - { php: '8.3', laravel: '12.*', testbench: '10.*', os: ubuntu-latest } | |
| - { php: '8.4', laravel: '12.*', testbench: '10.*', os: ubuntu-latest } | |
| # Keep an eye on the other host we claim to work on | |
| - { php: '8.4', laravel: '12.*', testbench: '10.*', os: macos-latest } | |
| name: PHP ${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd | |
| coverage: none | |
| ini-values: memory_limit=-1, error_reporting=E_ALL | |
| tools: composer:v2 | |
| - name: Determine composer cache directory | |
| id: composer-cache | |
| run: echo "directory=$(composer config cache-dir)" >> "$GITHUB_OUTPUT" | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.directory }} | |
| key: composer-${{ matrix.os }}-php${{ matrix.php }}-laravel${{ matrix.laravel }}-${{ hashFiles('composer.json') }} | |
| restore-keys: composer-${{ matrix.os }}-php${{ matrix.php }}-laravel${{ matrix.laravel }}- | |
| - name: Install dependencies | |
| run: | | |
| composer require --dev --no-update --no-interaction \ | |
| "laravel/framework:${{ matrix.laravel }}" \ | |
| "orchestra/testbench:${{ matrix.testbench }}" | |
| composer update --prefer-dist --no-interaction --no-progress | |
| - name: Run tests | |
| run: vendor/bin/pest | |
| static-analysis: | |
| name: PHPStan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| coverage: none | |
| tools: composer:v2 | |
| - run: composer update --prefer-dist --no-interaction --no-progress | |
| - run: vendor/bin/phpstan analyse --no-progress |