Skip to content

Commit

Permalink
Laravel 11 compatibility (#135)
Browse files Browse the repository at this point in the history
* Bump dependencies for Laravel 11

* Update GitHub Actions for Laravel 11

* specify l11-compatibility branch for laravel-doctrine/orm

* changed orm's dev version

* restricted phpunit/phpunit verstion to v9

* added missing ->once() call to Mockery stubs

* switched dependency to laravel-doctrine/orm to newly released v2.1.0

* dropeed support for Laravel v6, v7, v8

* fixed php version
  • Loading branch information
77web authored May 13, 2024
1 parent 098e8fa commit b354720
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 88 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
name: CI

on:
schedule:
- cron: '0 0 * * *'
push:
pull_request:

jobs:
tests:
runs-on: 'ubuntu-latest'
runs-on: ubuntu-latest

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

strategy:
matrix:
php: ['8.0', '8.1', '8.2']
laravel: ['8', '9', '10']
laravel: ['9', '10', '11']
exclude:
- php: '8.2'
laravel: '8'
- php: '8.0'
laravel: '10'
- laravel: '11'
php: '8.0'
- laravel: '11'
php: '8.1'

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down
86 changes: 43 additions & 43 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"name": "laravel-doctrine/migrations",
"type": "library",
"description": "Doctrine Migrations for Laravel",
"license": "MIT",
"keywords": [
"doctrine",
"laravel",
"orm",
"data mapper",
"database",
"migrations"
],
"authors": [
{
"name": "Patrick Brouwers",
"email": "[email protected]"
"name": "laravel-doctrine/migrations",
"type": "library",
"description": "Doctrine Migrations for Laravel",
"license": "MIT",
"keywords": [
"doctrine",
"laravel",
"orm",
"data mapper",
"database",
"migrations"
],
"authors": [
{
"name": "Patrick Brouwers",
"email": "[email protected]"
}
],
"require": {
"php": "^8",
"doctrine/migrations": "^3.4",
"doctrine/dbal": "^2.10.1|^3",
"illuminate/config": "^9.0|^10.0|^11.0",
"illuminate/contracts": "^9.0|^10.0|^11.0",
"illuminate/console": "^9.0|^10.0|^11.0",
"laravel-doctrine/orm": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0 | ^8.3 | ^9.3",
"phpstan/phpstan": "^1.9",
"mockery/mockery": "^1.3.1"
},
"autoload": {
"psr-4": {
"LaravelDoctrine\\Migrations\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"LaravelDoctrine\\Migrations\\MigrationsServiceProvider"
]
}
}
],
"require": {
"php": "^7.4|^8",
"doctrine/migrations": "^3.4",
"doctrine/dbal": "^2.10.1|^3",
"illuminate/config": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0",
"laravel-doctrine/orm": "^1.0|^2.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0 | ^8.3 | ^9.3",
"phpstan/phpstan": "^1.9",
"mockery/mockery": "^1.3.1"
},
"autoload": {
"psr-4": {
"LaravelDoctrine\\Migrations\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"LaravelDoctrine\\Migrations\\MigrationsServiceProvider"
]
}
}
}
Loading

0 comments on commit b354720

Please sign in to comment.