Skip to content

Laravel 12.x Compatibility #114

Laravel 12.x Compatibility

Laravel 12.x Compatibility #114

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
laravel: ['10.*', '11.*', '12.*']
php: [8.1, 8.2, 8.3]
phpunit: [ '10.*', '11.*']
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
- laravel: 12.*
testbench: 10.*
exclude:
- laravel: 10.*
phpunit: 11.*
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1
- laravel: 12.*
phpunit: 10.*
name: P${{ matrix.php }} - L${{ matrix.laravel }} - PU${{ matrix.phpunit }}
steps:
- uses: actions/checkout@v4
- name: Validate composer.json and composer.lock
run: composer validate
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, fileinfo, libxml, mbstring
coverage: none
- name: Install dependencies
run: |
composer remove --dev laravel/pint --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
composer update --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: composer run-script test