Skip to content

Commit 8e3d210

Browse files
committed
PHPORM-150 Run CI on Laravel 11
1 parent decbd99 commit 8e3d210

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/build-ci.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
strategy:
1414
matrix:
15+
mode:
16+
- "stable"
1517
os:
1618
- "ubuntu-latest"
1719
mongodb:
@@ -27,7 +29,10 @@ jobs:
2729
- php: "8.1"
2830
mongodb: "5.0"
2931
mode: "low-deps"
30-
32+
# Laravel 11
33+
- php: "8.3"
34+
mongodb: "7.0"
35+
mode: "dev"
3136
steps:
3237
- uses: "actions/checkout@v4"
3338

@@ -70,8 +75,10 @@ jobs:
7075
restore-keys: "${{ matrix.os }}-composer-"
7176

7277
- name: "Install dependencies"
73-
run: composer update --no-interaction $([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest --prefer-stable')
74-
78+
run: |
79+
composer update --no-interaction \
80+
$([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest --prefer-stable') \
81+
$([[ "${{ matrix.mode }}" == stable ]] && echo ' --prefer-stable')
7582
- name: "Run tests"
7683
run: "./vendor/bin/phpunit --coverage-clover coverage.xml"
7784
env:

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
## [unreleased]
55

6+
* Add support for Laravel 11 by @GromNaN in [#2735](https://github.com/mongodb/laravel-mongodb/pull/2735)
67
* Fix `Query\Builder::dump` and `dd` methods to dump the MongoDB query by @GromNaN in [#2727](https://github.com/mongodb/laravel-mongodb/pull/2727) and [#2730](https://github.com/mongodb/laravel-mongodb/pull/2730)
78

89
## [4.1.2]

composer.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,21 @@
2424
"require": {
2525
"php": "^8.1",
2626
"ext-mongodb": "^1.15",
27-
"illuminate/support": "^10.0",
28-
"illuminate/container": "^10.0",
29-
"illuminate/database": "^10.30",
30-
"illuminate/events": "^10.0",
27+
"illuminate/support": "^10.0|^11",
28+
"illuminate/container": "^10.0|^11",
29+
"illuminate/database": "^10.30|^11",
30+
"illuminate/events": "^10.0|^11",
3131
"mongodb/mongodb": "^1.15"
3232
},
3333
"require-dev": {
3434
"phpunit/phpunit": "^10.3",
35-
"orchestra/testbench": "^8.0",
35+
"orchestra/testbench": "^8.0|^9.0",
3636
"mockery/mockery": "^1.4.4",
3737
"doctrine/coding-standard": "12.0.x-dev",
3838
"spatie/laravel-query-builder": "^5.6",
3939
"phpstan/phpstan": "^1.10"
4040
},
41+
"minimum-stability": "dev",
4142
"replace": {
4243
"jenssegers/mongodb": "self.version"
4344
},
@@ -66,9 +67,6 @@
6667
"cs:fix": "phpcbf"
6768
},
6869
"config": {
69-
"platform": {
70-
"php": "8.1"
71-
},
7270
"allow-plugins": {
7371
"dealerdirect/phpcodesniffer-composer-installer": true
7472
}

0 commit comments

Comments
 (0)