配置 workflows

This commit is contained in:
Wisp X 2022-03-06 19:23:59 +08:00
parent ef08cf6fa8
commit af46c54b15
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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');