Skip to content

Laravel 13.x Compatibility #62

Laravel 13.x Compatibility

Laravel 13.x Compatibility #62

Workflow file for this run

name: "Run Tests - Current"
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3, 8.4, 8.5]
laravel: [^11.0, ^12.0, ^13.0]
dependency-version: [prefer-stable]
include:
- laravel: ^13.0
testbench: 11.*
- laravel: ^12.0
testbench: 10.*
- laravel: ^11.0
testbench: 9.*
exclude:
- laravel: ^13.0
php: 8.2
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Composer packages
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: composer-cache-${{ runner.os }}-php-${{ matrix.php }}-L${{ matrix.laravel }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-cache-${{ runner.os }}-php-${{ matrix.php }}-L${{ matrix.laravel }}-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit --color=always tests