Run post update in github actions to ensure cache is built

This commit is contained in:
David Bomba 2023-01-19 07:54:15 +11:00
parent 8821c32ba2
commit a1063f8249
5 changed files with 9 additions and 3 deletions

View File

@ -119,6 +119,7 @@ jobs:
php artisan optimize
php artisan cache:clear
php artisan config:cache
php artisan ninja:post-update
- name: Create DB and schemas
run: |
mkdir -p database

View File

@ -13,11 +13,14 @@ namespace App\Console\Commands;
use App\Jobs\Util\VersionCheck;
use App\Utils\Ninja;
use App\Utils\Traits\AppSetup;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
class PostUpdate extends Command
{
use AppSetup;
/**
* The name and signature of the console command.
*
@ -83,6 +86,8 @@ class PostUpdate extends Command
info('queue restarted');
$this->buildCache(true);
VersionCheck::dispatch();
info('Sent for version check');

View File

@ -9,7 +9,7 @@
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\DataMapper;
namespace App\DataMapper\Schedule;
use App\Models\Client;
use stdClass;

View File

@ -9,7 +9,7 @@
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Requests\Task;
namespace App\Http\Requests\TaskScheduler;
use App\Http\Requests\Request;

View File

@ -9,7 +9,7 @@
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace Tests\Feature;
namespace Tests\Feature\Email;
use App\Services\Email\EmailObject;
use App\Services\Email\EmailService;