Skip to content

Commit

Permalink
Merge pull request #149 from crynobone/nova5
Browse files Browse the repository at this point in the history
Supports Laravel Nova 5
  • Loading branch information
freekmurze authored Jan 17, 2025
2 parents 8b7ff98 + ba9f402 commit 06c75eb
Show file tree
Hide file tree
Showing 41 changed files with 14,551 additions and 6,234 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.2, 8.1, 8.0, 7.4]
laravel: [7.*, 8.*]
php: [8.4, 8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
dependency-version: [prefer-stable]
include:
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
exclude:
- php: 8.2
laravel: 7.*
- php: 8.1
laravel: 7.*
exclude:
- php: 8.1
laravel: 11.*
- php: 8.4
laravel: 10.*


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

Expand All @@ -37,8 +33,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
composer update --${{ matrix.dependency-version }} --with="laravel/framework:${{ matrix.laravel }}" --prefer-dist --no-interaction --no-suggest
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/build
/vendor
/node_modules
package-lock.json
composer.phar
composer.lock
phpunit.xml
auth.json
php_cs.cache
.phpunit.cache/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Next up, you must register the tool with Nova. This is typically done in the `to

// ...

public function tools()
public function tools(): array
{
return [
// ...
Expand Down
35 changes: 25 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
}
],
"require": {
"php": "^8.0|^7.3",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0",
"laravel/nova": "^4.0",
"nesbot/carbon": "^2.63|^3.0",
"spatie/laravel-backup": "^6.0|^7.0|^8.0|^9.0"
"php": "^8.2",
"illuminate/support": "^10.48.23|^11.35",
"laravel/nova": "^5.0",
"nesbot/carbon": "^2.62.1|^3.4",
"spatie/laravel-backup": "^9.0"
},
"require-dev": {
"orchestra/testbench": "^5.0|^6.0|^7.0",
"phpunit/phpunit": "9.3",
"spatie/phpunit-snapshot-assertions": "^3.0|^4.0"
"laravel/nova-devtool": "^1.4",
"orchestra/testbench": "^8.30|^9.7",
"spatie/phpunit-snapshot-assertions": "^5.1.7"
},
"repositories": [
{
Expand All @@ -40,7 +40,10 @@
},
"autoload-dev": {
"psr-4": {
"Spatie\\BackupTool\\Tests\\": "tests"
"Spatie\\BackupTool\\Tests\\": "tests",
"Workbench\\App\\": "workbench/app/",
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
}
},
"extra": {
Expand All @@ -51,7 +54,19 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit"
"test": "vendor/bin/phpunit",
"post-autoload-dump": [
"@clear",
"@prepare"
],
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"build": "@php vendor/bin/testbench workbench:build --ansi",
"serve": [
"Composer\\Config::disableProcessTimeout",
"@build",
"@php vendor/bin/testbench serve --ansi"
]
},
"config": {
"sort-packages": true
Expand Down
3 changes: 2 additions & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/tool.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
33 changes: 0 additions & 33 deletions mix.js

This file was deleted.

Loading

0 comments on commit 06c75eb

Please sign in to comment.