Skip to content

Commit

Permalink
add: Laravel 10 support (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xammie authored Feb 14, 2023
1 parent ee80034 commit ccd081c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1, 8.0]
laravel: [9.*, 8.*]
php: [8.2, 8.1, 8.0]
laravel: [10.*, 9.*, 8.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: ^6.23
exclude:
- laravel: 10.*
php: 8.0

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

Expand All @@ -42,7 +47,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
}
],
"require": {
"php": "^8.0 || ^8.1",
"php": "^8.0",
"spatie/laravel-package-tools": "^1.9.2",
"laravel/framework": "^8.0 || ^9.0"
"laravel/framework": "^8.0 || ^9.0 || ^10.0"
},
"require-dev": {
"laravel/pint": "^1.2",
"nunomaduro/collision": "^5.10 || ^6.0",
"nunomaduro/larastan": "^1.0",
"orchestra/testbench": "^6.22 || ^7.0",
"nunomaduro/larastan": "^1.0 || ^2.0",
"orchestra/testbench": "^6.22 || ^7.0 || ^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"phpstan/extension-installer": "^1.1",
Expand Down

0 comments on commit ccd081c

Please sign in to comment.