From d16b3bdc7188b26fe478fe6aca3999e6ddcb2e8e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Jun 2026 17:45:43 -0400 Subject: [PATCH] fix(ci): run optimize:clear after migrations to avoid no such table: cache optimize:clear runs cache:clear which needs the cache table to exist. Since migrate:fresh creates tables, reorder: migrate first, then clear caches. --- .gitea/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 188cea19..fccc02cc 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -158,11 +158,13 @@ jobs: touch database/database.sqlite php artisan key:generate --force php artisan jwt:secret --force || true - php artisan optimize:clear - name: Run database migrations run: php artisan migrate:fresh --force + - name: Clear caches + run: php artisan optimize:clear + - name: Run Unit tests continue-on-error: true run: php artisan test --testsuite=Unit --log-junit reports/phpunit-unit.xml || echo "Unit tests have failures (non-blocking)"