mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-07 03:16:46 +08:00
✨ 配置 workflows
This commit is contained in:
parent
ef08cf6fa8
commit
af46c54b15
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -31,4 +31,7 @@ jobs:
|
||||
- name: Install Lsky Pro
|
||||
run: php artisan lsky:install --connection=sqlite --database=database/database.sqlite
|
||||
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
||||
env:
|
||||
DB_CONNECTION: sqlite
|
||||
DB_DATABASE: database/database.sqlite
|
||||
run: vendor/bin/phpunit
|
||||
|
@ -1,15 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit;
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Enums\ConfigKey;
|
||||
use App\Utils;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Tests\TestCase;
|
||||
|
||||
class UtilTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_config()
|
||||
{
|
||||
Cache::forget('configs');
|
Loading…
Reference in New Issue
Block a user