Skip to content

Commit 38224ce

Browse files
committed
L13
1 parent b33e16a commit 38224ce

35 files changed

Lines changed: 812 additions & 766 deletions

.github/workflows/run-tests.yml

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,26 @@ on:
55
branches:
66
- main
77
- dev-main
8+
89
jobs:
910
test:
1011
runs-on: ubuntu-22.04
12+
timeout-minutes: 15
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [ 8.3, 8.4 ]
17+
laravel: [ 13.*, 12.*, 11.* ]
18+
include:
19+
- laravel: 13.*
20+
testbench: 11.*
21+
- laravel: 12.*
22+
testbench: 10.*
23+
- laravel: 11.*
24+
testbench: 9.*
25+
26+
name: P${{ matrix.php }} - L${{ matrix.laravel }}
27+
1128
env:
1229
BROADCAST_DRIVER: log
1330
CACHE_DRIVER: redis
@@ -20,7 +37,6 @@ jobs:
2037
MAIL_MAILER: array
2138
TELESCOPE_ENABLED: false
2239

23-
# Docs: https://docs.github.com/en/actions/using-containerized-services
2440
services:
2541
elasticsearch:
2642
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.0
@@ -43,32 +59,31 @@ jobs:
4359
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3
4460

4561
steps:
46-
- name: Checkout 🛎
47-
uses: actions/checkout@v4
62+
- name: Checkout
63+
uses: actions/checkout@v6
4864

49-
- name: Verify Elasticsearch connection 🧩
65+
- name: Verify Elasticsearch connection
5066
run: |
5167
curl -X GET "localhost:${{ job.services.elasticsearch.ports['9200'] }}/_cluster/health?pretty=true"
5268
53-
- name: Setup PHP 🏗
69+
- name: Setup PHP
5470
uses: shivammathur/setup-php@v2
5571
with:
56-
php-version: 8.2
72+
php-version: ${{ matrix.php }}
5773
tools: composer:v2
5874
coverage: xdebug
5975
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo, mysql
6076

61-
- name: Install Project Dependencies 💻
77+
- name: Install dependencies
6278
run: |
63-
composer install --no-interaction --prefer-dist --optimize-autoloader
79+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
80+
composer update --prefer-stable --prefer-dist --no-interaction
6481
65-
- name: List Installed Dependencies 📦
82+
- name: List Installed Dependencies
6683
run: composer show -D
6784

68-
- name: Run tests 🧪
69-
run: |
70-
./vendor/bin/pest --version
71-
./vendor/bin/pest
85+
- name: Run tests
86+
run: vendor/bin/pest --ci
7287
env:
7388
REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
7489
ELASTICSEARCH_PORT: ${{ job.services.elasticsearch.ports['9200'] }}

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
All notable changes to this `laravel-elasticsearch` package will be documented in this file.
44

5+
## v5.6.0 - 2026-03-24
6+
7+
This release is compatible with Laravel 11, 12 & 13
8+
9+
### Added
10+
11+
- **Laravel 13 support**
12+
- Symfony 8 support (via Laravel 13)
13+
- Composer test scripts for per-version testing: `composer test:l11`, `composer test:l12`, `composer test:l13`, `composer test:all`
14+
15+
### Changed
16+
17+
- Dropped Laravel 10 support (EOL)
18+
- `pdphilip/omniterm` bumped to `^3.0`
19+
- `Connection::select()` signature updated with `$fetchUsing` parameter (Laravel 13 compatibility)
20+
- Laravel compatibility layer dispatchers use `>= 12` (L13 shares L12's connection/schema patterns)
21+
- Version gate updated: `Helpers::getLaravelCompatabilityVersion()` now accepts 11, 12, 13
22+
- CI matrix updated: PHP 8.3/8.4, Laravel 11/12/13
23+
24+
**Full Changelog**: https://github.com/pdphilip/laravel-elasticsearch/compare/v5.5.3...v5.6.0
25+
526
## v5.5.3 - 2026-03-20
627

728
### Fixed

composer.json

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@
2020
"license": "MIT",
2121
"require": {
2222
"php": "^8.2",
23-
"illuminate/container": "^10.0|^11|^12",
24-
"illuminate/database": "^10.30|^11|^12",
25-
"illuminate/events": "^10.0|^11|^12",
26-
"illuminate/support": "^10.0|^11|^12",
23+
"illuminate/container": "^11.0|^12.0|^13.0",
24+
"illuminate/database": "^11.0|^12.0|^13.0",
25+
"illuminate/events": "^11.0|^12.0|^13.0",
26+
"illuminate/support": "^11.0|^12.0|^13.0",
2727
"elasticsearch/elasticsearch": "^8.17",
2828
"spatie/ignition": "^1.15",
29-
"pdphilip/omniterm": "^2.1.1"
29+
"pdphilip/omniterm": "^3.0"
3030
},
3131
"require-dev": {
32-
"orchestra/testbench": "^10.1||^9.0.0||^8.22.0",
32+
"orchestra/testbench": "^9.0||^10.0||^11.0",
3333
"mockery/mockery": "^1.4.4",
3434
"doctrine/coding-standard": "12.0.x-dev",
35-
"pestphp/pest": "^3",
36-
"pestphp/pest-plugin-laravel": "^3",
35+
"pestphp/pest": "^3||^4",
36+
"pestphp/pest-plugin-laravel": "^3||^4",
3737
"laravel/pint": "^1.14",
38-
"nunomaduro/collision": "^8.1.1||^7.10.0",
38+
"nunomaduro/collision": "^8.1.1",
3939
"larastan/larastan": "^3",
40-
"pestphp/pest-plugin-arch": "^3",
41-
"phpstan/extension-installer": "^1.4",
40+
"pestphp/pest-plugin-arch": "^3||^4",
41+
"phpstan/extension-installer": "^1.4||^2.0",
4242
"phpstan/phpstan-deprecation-rules": "^2",
4343
"phpstan/phpstan-phpunit": "^2"
4444
},
@@ -93,6 +93,24 @@
9393
"@test:lint",
9494
"@test:types",
9595
"@test:unit"
96+
],
97+
"test:l11": [
98+
"@composer update --with laravel/framework:^11.0 --prefer-stable --no-interaction --quiet",
99+
"@test:unit"
100+
],
101+
"test:l12": [
102+
"@composer update --with laravel/framework:^12.0 --prefer-stable --no-interaction --quiet",
103+
"@test:unit"
104+
],
105+
"test:l13": [
106+
"@composer update --with laravel/framework:^13.0 --prefer-stable --no-interaction --quiet",
107+
"@test:unit"
108+
],
109+
"test:all": [
110+
"Composer\\Config::disableProcessTimeout",
111+
"@test:l11",
112+
"@test:l12",
113+
"@test:l13"
96114
]
97115
}
98116
}

0 commit comments

Comments
 (0)