Skip to content

feat: Adds support for Laravel 11 #286

feat: Adds support for Laravel 11

feat: Adds support for Laravel 11 #286

Workflow file for this run

name: tests
on:
push:
pull_request:
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ "8.1", "8.2", "8.3" ]
laravel: [ "9.*", "10.*", "11.*" ]
dependency-version: [ prefer-lowest, prefer-stable ]
exclude:
- php: "8.1"
laravel: "11.*"
include:
- laravel: "11.*"
testbench: "^9.0"
- laravel: "10.*"
testbench: "^8.0"
- laravel: "9.*"
testbench: "^7.0"
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --dev --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest