-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from llaski/v6
Version 6
- Loading branch information
Showing
71 changed files
with
28,461 additions
and
988 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 | ||
|
||
[docker-compose.yml] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# Ignore all test and documentation for archive | ||
/.github export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/tests export-ignore | ||
/docs export-ignore | ||
* text=auto | ||
|
||
*.blade.php diff=html | ||
*.css diff=css | ||
*.html diff=html | ||
*.md diff=markdown | ||
*.php diff=php | ||
|
||
/.github export-ignore | ||
CHANGELOG.md export-ignore | ||
.styleci.yml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,44 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
pull_request: | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php: [ '7.3', '7.4', '8.0' ] | ||
|
||
name: Tests | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2 | ||
|
||
- name: Setup Laravel Nova Credentials | ||
run: composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD} | ||
env: | ||
NOVA_PASSWORD: ${{ secrets.NOVA_PASSWORD }} | ||
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }} | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: vendor | ||
key: composer-${{ hashFiles('composer.lock') }} | ||
|
||
- name: Install composer dependencies | ||
run: composer install --no-ansi --no-interaction --no-scripts --prefer-dist --no-progress | ||
|
||
- name: Execute tests | ||
run: vendor/bin/phpunit --verbose | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php: ['8.0', '8.1'] | ||
|
||
name: Tests - PHP ${{ matrix.php }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2 | ||
|
||
- name: Setup Laravel Nova Credentials | ||
run: composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_LICENSE_KEY} | ||
env: | ||
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }} | ||
NOVA_LICENSE_KEY: ${{ secrets.NOVA_LICENSE_KEY }} | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: composer-${{ hashFiles('composer.lock') }} | ||
|
||
- name: Install composer dependencies | ||
run: | ||
composer install --no-ansi --no-interaction --no-scripts --prefer-dist | ||
--no-progress | ||
|
||
- name: Execute tests | ||
run: vendor/bin/phpunit --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
/.idea | ||
/vendor | ||
/node_modules | ||
package-lock.json | ||
composer.phar | ||
composer.lock | ||
phpunit.xml | ||
.phpunit.result.cache | ||
.DS_Store | ||
Thumbs.db | ||
auth.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,17 @@ The MIT License (MIT) | |
|
||
Copyright (c) Built By Larry <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | ||
associated documentation files (the "Software"), to deal in the Software without restriction, | ||
including without limitation the rights to use, copy, modify, merge, publish, distribute, | ||
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
The above copyright notice and this permission notice shall be included in all copies or substantial | ||
portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT | ||
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES | ||
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,71 @@ | ||
# Nova Scheduled Jobs | ||
|
||
[![Latest Version on Packagist](https://img.shields.io/packagist/v/llaski/nova-scheduled-jobs.svg?style=flat-square)](https://packagist.org/packages/llaski/nova-scheduled-jobs) | ||
![Test Suite](https://github.com/llaski/nova-scheduled-jobs/actions/workflows/tests.yml/badge.svg) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/llaski/nova-scheduled-jobs.svg?style=flat-square)](https://packagist.org/packages/llaski/nova-scheduled-jobs) | ||
|
||
## Includes both a tool and card to display your scheduled commands and jobs | ||
|
||
![Nova Scheduled Jobs Tool Screenshot](https://raw.githubusercontent.com/llaski/screenshots/master/nova-scheduled-jobs-tool.png) | ||
![Nova Scheduled Jobs Tool Screenshot](https://raw.githubusercontent.com/llaski/nova-scheduled-jobs/screenshots/master/Tool.png) | ||
|
||
![Nova Scheduled Jobs Card Screenshot](https://raw.githubusercontent.com/llaski/screenshots/master/nova-scheduled-jobs-card.png) | ||
![Nova Scheduled Jobs Card Screenshot](https://raw.githubusercontent.com/llaski/nova-scheduled-jobs/screenshots/master/Card.png) | ||
|
||
## Installation | ||
|
||
You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer: | ||
You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via | ||
composer: | ||
|
||
```bash | ||
composer require llaski/nova-scheduled-jobs | ||
``` | ||
|
||
To setup the tool, you must register the tool with Nova. This is typically done in the `tools` method of the `NovaServiceProvider`. | ||
To setup the tool, you must register the tool with Nova. This is typically done in the `tools` | ||
method of the `NovaServiceProvider`. | ||
|
||
```php | ||
// in app/Providers/NovaServiceProvider.php | ||
<?php | ||
|
||
namespace App\Providers; | ||
|
||
use Llaski\NovaScheduledJobs\Tool as NovaScheduledJobsTool; | ||
|
||
// ... | ||
|
||
public function tools() | ||
{ | ||
return [ | ||
// ... | ||
new \Llaski\NovaScheduledJobs\NovaScheduledJobsTool, | ||
new NovaScheduledJobsTool, | ||
]; | ||
} | ||
``` | ||
|
||
To setup the card, you must register the card with Nova. This is typically done in the `cards` method of the `NovaServiceProvider`. | ||
To setup the card, you must register the card with Nova. This is typically done in the `cards` | ||
method of your resource or dashboard. For example: | ||
|
||
```php | ||
// in app/Providers/NovaServiceProvider.php | ||
// in app/Nova/Dashboards/Main.php | ||
<?php | ||
|
||
namespace App\Nova\Dashboards; | ||
|
||
use Llaski\NovaScheduledJobs\Card as NovaScheduledJobsCard; | ||
// ... | ||
|
||
public function cards() | ||
{ | ||
return [ | ||
// ... | ||
new \Llaski\NovaScheduledJobs\NovaScheduledJobsCard, | ||
new NovaScheduledJobsCard, | ||
]; | ||
} | ||
``` | ||
|
||
### Testing | ||
|
||
``` bash | ||
phpunit | ||
```zsh | ||
vendor/bin/phpunit --verbose | ||
``` | ||
|
||
### Changelog | ||
|
@@ -65,12 +78,13 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details. | |
|
||
### Security | ||
|
||
If you discover any security related issues, please email [email protected] instead of using the issue tracker. | ||
If you discover any security related issues, please email [email protected] instead of using the | ||
issue tracker. | ||
|
||
## Credits | ||
|
||
- [Larry Laski](https://github.com/llaski) | ||
- [All Contributors](../../contributors) | ||
- [Larry Laski](https://github.com/llaski) | ||
- [All Contributors](../../contributors) | ||
|
||
## License | ||
|
||
|
Oops, something went wrong.