Files
alrahma_sunday_school_api/.gitea/workflows
root 181ac9e94e
API CI/CD / Validate (composer + pint) (push) Successful in 2m8s
API CI/CD / Test (PHPUnit) (push) Failing after 54s
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
fix(ci): fix autoloading and bootstrap cache issues causing test failures
Three changes:
1. Add composer dump-autoload after composer install in all jobs
   (validate, test, security) — ensures fresh autoloader mapping
2. Replace config:clear + view:clear with optimize:clear in test job
   — clears bootstrap/cache (services.php, packages.php) which
   caused 'Class not found' for Sanctum\Guard, 'not instantiable'
   for AttendanceMailerService, and 'factory() undefined' for User
3. Add explicit $incrementing = true to Configuration model
   — ensures Eloquent treats id as auto-increment (belt-and-suspenders
   for SQLite NOT NULL constraint failures)
2026-06-25 17:27:53 -04:00
..