Skip to content

Commit

Permalink
Add Laravel 10 support (#246)
Browse files Browse the repository at this point in the history
* Add Laravel 10 support

* Run tests for Laravel 10

* Update README to include Laravel 10 in Supported Versions

* Update tests.yml

Co-authored-by: Dries Vints <dries@vints.io>
  • Loading branch information
jnoordsij and driesvints authored Jan 10, 2023
1 parent 9c9928b commit 810addd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
fail-fast: true
matrix:
php: ['8.0', 8.1, 8.2]
laravel: [9.x]
laravel: [9, 10]
exclude:
- php: '8.0'
laravel: 10

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

Expand All @@ -36,7 +39,7 @@ jobs:

- name: Install dependencies
run: |
composer require "illuminate/contracts=${{ matrix.laravel }}" --dev --no-update
composer require "illuminate/contracts=^${{ matrix.laravel }}" --dev --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Only the latest major version of Laravel UI receives bug fixes. The table below
| [1.x](https://github.com/laravel/ui/tree/1.x) | 5.8, 6.x |
| [2.x](https://github.com/laravel/ui/tree/2.x) | 7.x |
| [3.x](https://github.com/laravel/ui/tree/3.x) | 8.x |
| [4.x](https://github.com/laravel/ui/tree/4.x) | 9.x |
| [4.x](https://github.com/laravel/ui/tree/4.x) | 9.x, 10.x |

### Installation

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
],
"require": {
"php": "^8.0",
"illuminate/console": "^9.21",
"illuminate/filesystem": "^9.21",
"illuminate/support": "^9.21",
"illuminate/validation": "^9.21"
"illuminate/console": "^9.21|^10.0",
"illuminate/filesystem": "^9.21|^10.0",
"illuminate/support": "^9.21|^10.0",
"illuminate/validation": "^9.21|^10.0"
},
"require-dev": {
"orchestra/testbench": "^7.0"
"orchestra/testbench": "^7.0|^8.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 810addd

Please sign in to comment.