mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
parent
616f3558dd
commit
a81c520d93
2
.github/workflows/tests-mysql.yml
vendored
2
.github/workflows/tests-mysql.yml
vendored
|
@ -67,7 +67,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
php artisan migrate --force
|
php artisan migrate --force
|
||||||
php artisan passport:install
|
php artisan passport:install --no-interaction
|
||||||
chmod -R 777 storage bootstrap/cache
|
chmod -R 777 storage bootstrap/cache
|
||||||
|
|
||||||
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
||||||
|
|
2
.github/workflows/tests-postgres.yml
vendored
2
.github/workflows/tests-postgres.yml
vendored
|
@ -65,7 +65,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
php artisan migrate --force
|
php artisan migrate --force
|
||||||
php artisan passport:install
|
php artisan passport:install --no-interaction
|
||||||
chmod -R 777 storage bootstrap/cache
|
chmod -R 777 storage bootstrap/cache
|
||||||
|
|
||||||
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
||||||
|
|
|
@ -40,7 +40,7 @@ class DashboardController extends Controller
|
||||||
|
|
||||||
if ((! file_exists(storage_path().'/oauth-private.key')) || (! file_exists(storage_path().'/oauth-public.key'))) {
|
if ((! file_exists(storage_path().'/oauth-private.key')) || (! file_exists(storage_path().'/oauth-public.key'))) {
|
||||||
Artisan::call('migrate', ['--force' => true]);
|
Artisan::call('migrate', ['--force' => true]);
|
||||||
\Artisan::call('passport:install');
|
Artisan::call('passport:install', ['--no-interaction' => true]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);
|
return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);
|
||||||
|
|
|
@ -580,7 +580,7 @@ echo "--------------------------------------------------------\e[39m\n\n";
|
||||||
|
|
||||||
if ((!file_exists('storage/oauth-public.key')) || (!file_exists('storage/oauth-private.key'))) {
|
if ((!file_exists('storage/oauth-public.key')) || (!file_exists('storage/oauth-private.key'))) {
|
||||||
echo $info_icon." No OAuth keys detected. Running passport install now.\n\n";
|
echo $info_icon." No OAuth keys detected. Running passport install now.\n\n";
|
||||||
$passport = shell_exec('php artisan passport:install');
|
$passport = shell_exec('php artisan passport:install --no-interaction');
|
||||||
echo $passport;
|
echo $passport;
|
||||||
} else {
|
} else {
|
||||||
echo $success_icon." OAuth keys detected. Skipping passport install.\n\n";
|
echo $success_icon." OAuth keys detected. Skipping passport install.\n\n";
|
||||||
|
|
Loading…
Reference in a new issue