fix(ci): avoid cache:clear — use config:clear + view:clear + clear-compiled instead
API CI/CD / Validate (composer + pint) (push) Successful in 2m6s
API CI/CD / Test (PHPUnit) (push) Failing after 59s
API CI/CD / Build frontend assets (push) Successful in 53s
API CI/CD / Security audit (push) Successful in 33s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 2m6s
API CI/CD / Test (PHPUnit) (push) Failing after 59s
API CI/CD / Build frontend assets (push) Successful in 53s
API CI/CD / Security audit (push) Successful in 33s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
optimize:clear calls cache:clear which needs the cache table from migrations (php artisan cache:table). This table doesn't exist in our schema. clear-compiled is sufficient to clear bootstrap/cache/*.php.
This commit is contained in:
@@ -163,7 +163,10 @@ jobs:
|
||||
run: php artisan migrate:fresh --force
|
||||
|
||||
- name: Clear caches
|
||||
run: php artisan optimize:clear
|
||||
run: |
|
||||
php artisan config:clear
|
||||
php artisan view:clear
|
||||
php artisan clear-compiled
|
||||
|
||||
- name: Run Unit tests
|
||||
continue-on-error: true
|
||||
|
||||
Reference in New Issue
Block a user