Skip to content

Support older version of Laravel #53

Support older version of Laravel

Support older version of Laravel #53

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
# Test with Bref platform
test-bref:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2, 8.3, 8.4 ]
laravel: [ 8.*, 9.*, 10.*, 11.*, 12.* ]
lambda: [ 1.0, 2.0 ]
stability: [ prefer-stable ]
exclude:
# Laravel 10 requires PHP 8.1+
- laravel: 10.*
php: 8.0
# Laravel 11 requires PHP 8.2+
- laravel: 11.*
php: 8.1
# Laravel 12 requires PHP 8.3+
- laravel: 12.*
php: 8.1
- laravel: 12.*
php: 8.2
name: P${{ matrix.php }} - L${{ matrix.laravel }} - lambda-${{ matrix.lambda }} - bref
steps:
- name: Checkout package code
uses: actions/checkout@v5
- name: Run tests
uses: ./.github/actions/test-action
with:
php-version: ${{ matrix.php }}
laravel-version: ${{ matrix.laravel }}
lambda-version: ${{ matrix.lambda }}
platform: bref
# Test with Vapor platform
# test-vapor:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# php: [ 8.1, 8.2, 8.3, 8.4 ]
# laravel: [ 10.*, 11.*, 12.* ]
# stability: [ prefer-stable ]
# lambda: [ 1.0, 2.0 ]
# exclude:
# # Laravel 11 requires PHP 8.2+
# - laravel: 11.*
# php: 8.1
# # Laravel 12 requires PHP 8.2+
# - laravel: 12.*
# php: 8.1
# name: P${{ matrix.php }} - L${{ matrix.laravel }} - vapor
#
# steps:
# - name: Checkout package code
# uses: actions/checkout@v5
#
# - name: Run tests
# uses: ./.github/actions/test-action
# with:
# php-version: ${{ matrix.php }}
# laravel-version: ${{ matrix.laravel }}
# lambda-version: ${{ matrix.lambda }}
# platform: vapor