diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index acc7a9b..c1a91d1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: php-version: - - "8.2" + - '8.2' env: extensions: mbstring, sqlite, intl, gd @@ -64,3 +64,10 @@ jobs: - name: Run tests run: php artisan test + + - name: Upload logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: php-${{ matrix.php-version }}-logs + path: storage/logs/laravel.log diff --git a/tests/TestCase.php b/tests/TestCase.php index 43769c7..b8fcbe5 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -4,10 +4,13 @@ namespace Tests; +use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { + use RefreshDatabase; + protected function setUp(): void { parent::setUp();