Skip to content

Commit

Permalink
Support Laravel 11.x (#2814)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Mar 19, 2024
1 parent be5b67a commit da395cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.2, 8.1]
php: [8.3, 8.2, 8.1]
os: [ubuntu-latest, windows-latest]
laravel: [10.*]
laravel: ["11.*", "10.*",]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.1

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

Expand Down Expand Up @@ -59,13 +66,13 @@ jobs:
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Make SQLite database
run: vendor/orchestra/testbench-dusk/create-sqlite-db
run: vendor/bin/testbench-dusk workbench:create-sqlite-db

- name: Update Dusk Chromedriver
run: vendor/bin/dusk-updater detect --auto-update

- name: Execute Unit Tests
run: vendor/bin/phpunit --testsuite=Browser --no-coverage --disable-coverage-ignore
run: vendor/bin/phpunit --testsuite=Browser --no-coverage --disable-coverage-ignore
env:
RUNNING_IN_CI: true

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
"ext-json": "*",
"orchid/blade-icons": "^4.0",
"tabuna/breadcrumbs": "^4.0",
"laravel/framework": "^10.0",
"laravel/framework": "^10.0||^11.0",
"laravel/scout": "^9.0 || ^10.0",
"watson/active": "^7.0",
"twbs/bootstrap-icons": "^1.10"
},
"require-dev": {
"doctrine/dbal": "^2.10 || ^3.0",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.2",
"orchestra/testbench-core": "^8.0",
"orchestra/testbench-dusk": "^8.0",
"phpunit/php-code-coverage": "^10.0",
"phpunit/phpunit": "^10.0",
"laravel/pint": "^1.14",
"orchestra/testbench-core": "^8.0 || ^9.0",
"orchestra/testbench-dusk": "^8.0 || ^9.0",
"phpunit/php-code-coverage": "^10.0 || ^11.0",
"phpunit/phpunit": "^10.0 || ^11.0",
"vimeo/psalm": "^5.0"
},
"conflict": {
Expand Down
4 changes: 2 additions & 2 deletions src/Support/Facades/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
* @method static string prefix(string $path = '')
* @method static configure(array $options)
* @method static option(string $key, ?string $default = null)
* @method static modelClass(string $key, string $default = null)
* @method static mixed modelClass(string $key, string $default = null)
* @method static model(string $key, string $default = null)
* @method static useModel(string $key, string $custom)
* @method static bool checkUpdate()
* @method static setCurrentScreen(Screen $screen, bool $partialRequest = false)
* @method static self setCurrentScreen(Screen $screen, bool $partialRequest = false)
* @method static Screen|null getCurrentScreen()
* @method static bool isPartialRequest()
*/
Expand Down

0 comments on commit da395cf

Please sign in to comment.