Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11.x Compatibility #58

Merged
merged 6 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 27 additions & 23 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,57 @@ on:
push:
branches:
- main

pull_request:
types: [ opened, synchronize, reopened ]
types:
- opened
- synchronize
- reopened

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [ 7.4, 8.0, 8.1, 8.2 ]
laravel: [ 8.*, 9.* , 10.*]
dependency-version: [ prefer-lowest, prefer-stable ]
php: [8.0, 8.1, 8.2, 8.3]
laravel: ['8.*', '9.*', '10.*', '11.*']
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 8.*
testbench: 6.*
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*

exclude:
- laravel: 10.*
php: 7.3
- laravel: 10.*
php: 7.4
- laravel: 10.*
php: 8.0

# PHP 8.1 requires Laravel 8.65, so skip lowest
- laravel: 8.*
php: 8.1
dependency-version: prefer-lowest

# PHP 8.2 requires Laravel 8.65, so skip lowest
- laravel: 8.*
php: 8.2
dependency-version: prefer-lowest

- laravel: 9.*
php: 7.4
- laravel: 8.*
php: 8.3
dependency-version: prefer-lowest

- laravel: 10.*
php: 8.0

- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1


name: P${{ matrix.php }} / L${{ matrix.laravel }} / ${{ matrix.dependency-version }}

services:
mysql:
image: mysql:5.7
image: mysql:8.0
env:
MYSQL_DATABASE: fast_paginate
MYSQL_HOST: 127.0.0.1
Expand All @@ -63,10 +67,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ bootstrap/cache/services.php
docs/*.blade.php
docs/**/*.blade.php
phpunit.xml
.phpunit.cache/test-results
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
],
"require": {
"php": "^7.4|^8.0",
"illuminate/database": "^8.37|^9.0|^10.0"
"illuminate/database": "^8.37|^9.0|^10.0|^11.0"
},
"require-dev": {
"orchestra/testbench": "^6|^7|^8.0",
"orchestra/testbench": "^6|^7|^8.0|^9.0",
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": ">=8.5.23|^9",
"laravel/scout": "^9.4"
"laravel/scout": "^9.4|^10.8"
},
"autoload": {
"psr-4": {
Expand Down