Skip to content

Commit

Permalink
Laravel 11 support (adapted from unmerged laravel-shift PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed May 7, 2024
1 parent 57d42b1 commit ec0e8bd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,52 @@ 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: [7.4, 8.0, 8.1, 8.2]
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: 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: 11.*
php: 7.4
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

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

Expand Down Expand Up @@ -85,4 +90,4 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/storage/framework/testing
.env
.phpunit.result.cache
.phpunit.cache
npm-debug.log
yarn-error.log
composer.lock
Expand Down
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
}
],
"require": {
"php": "^7.4|^8.0",
"illuminate/database": "^8.37|^9.0|^10.0"
"php": "^7.4|^8.0|^8.1|^8.2",
"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"
"phpunit/phpunit": ">=8.5.23|^9|^10",
"laravel/scout": "^9.4|^10.8"
},
"autoload": {
"psr-4": {
Expand All @@ -29,6 +29,9 @@
"Hammerstone\\FastPaginate\\Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"extra": {
"laravel": {
"providers": [
Expand Down

0 comments on commit ec0e8bd

Please sign in to comment.