Skip to content

Commit

Permalink
Support Laravel 11 (#14)
Browse files Browse the repository at this point in the history
* ⬆️ Upgrade morningtrain/economic dependency version

* 🔨 Add lando file

* ⬆️ Upgrade dependencies for Laravel 11 support

* ⬇️ Allow older version of morningtrain/economic

* 👷 Add Laravel 11 checks

* 👷 Remove carbon from test runs

* 👷 Exclude Laravel 11 from php 8.1

* ⬇️ Downgrade morningtrain/economic to v0.8

* 👷 Exclude windows
  • Loading branch information
SimonJnsson authored Aug 29, 2024
1 parent db155d6 commit 9b8943d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.1]
laravel: [10.*]
stability: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
stability: [prefer-stable]
include:
- laravel: 11.*
testbench: ^9.0
- laravel: 10.*
testbench: ^8.15
carbon: ^2.67
testbench: ^8.0
exclude:
- laravel: 11.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -41,7 +45,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"require": {
"php": "^8.1",
"spatie/laravel-package-tools": "^1.14.0",
"illuminate/contracts": "^10.0",
"illuminate/http": "^10.0",
"morningtrain/economic": "^v0.7.2"
"illuminate/contracts": "^10.0|^11.0",
"illuminate/http": "^10.0|^11.0",
"morningtrain/economic": "^v0.8"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.8",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^8.15",
"nunomaduro/collision": "^7.8|^8.1",
"larastan/larastan": "^2.0",
"orchestra/testbench": "^8.0|^v9.0",
"pestphp/pest": "^2.20",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
Expand Down

0 comments on commit 9b8943d

Please sign in to comment.