Commit Graph

23 Commits (1f85fc8da2fce9fa8928811459c411ba6b60680b)

Author SHA1 Message Date
Your Name c7473cd1a8 ci: refactor GitHub Actions with Redis service and best practices
- Tests workflow: add Redis service, cache composer deps, test PHP 8.4+8.5,
  generate Passport keys, use vendor/bin/pest directly
- Larastan workflow: cache deps, consistent checkout@v4, memory limit
- Pint workflow: use project's installed Pint (not global), cache deps
- Standardize Redis port to 6379 across CI and local docker-compose
- Remove 'unstable' branch from triggers (unused)
- Remove 'main' branch from static analysis (doesn't exist)
4 weeks ago
Your Name 8a2649b3ff feat: add critical path test suite and fix auth/config issues
Test Infrastructure:
- Modernize phpunit.xml (bootstrap, source block, Laravel 12 env vars)
- Configure tests/Pest.php with pest()->extend(TestCase::class)->in('Feature')
- Add docker-compose.test.yml (Redis for test suite)
- Add composer test/test:quick scripts
- Rename CACHE_DRIVER to CACHE_STORE across config (backwards compatible)
- Update .env.testing for in-memory SQLite + Docker Redis

Test Coverage (190 tests):
- CriticalRoutes: public routes, auth routes, API endpoints, middleware, schedule
- Auth/LoginTest: login, logout, rate limiting, redirect behavior
- Auth/RegisterTest: registration flow, validation, disabled registration
- Auth/PasswordResetTest: reset request, token validation, password update
- Auth/TwoFactorTest: 2FA checkpoint, setup behind password confirmation
- Auth/PasswordConfirmationTest: sudo mode flow via Laravel password.confirm
- Api/ScopeTest: scope enforcement, public endpoints, admin access

Bugs Fixed:
- Fix unauthenticated API returning 500 instead of 401 (AuthenticationException
  not handled in custom exception renderer in bootstrap/app.php)
- Replace custom DangerZone middleware with Laravel password.confirm
- Add HasFactory trait to Profile model for test factories

Bugs Documented (known-bugs group):
- Registration crashes with str_ends_with TypeError (RegisterController:82)
- OAuth routes use legacy array syntax causing ReflectionFunction TypeError
4 weeks ago
Shlee 6eec737b78
Update .env.testing 4 weeks ago
Shlee b5ce7a8c58
Update .env.testing 7 months ago
Christian Winther 88ad5d6a4f ignore some shellchecks for .env files 3 years ago
Daniel Supernault 9b054d2bae
Update CI .env 3 years ago
Shlee e46fe3db57
Update .env.testing 4 years ago
Shlee f56c175b09
Update .env.testing 7 years ago
Daniel Supernault 38199308d1
Update .env, remove SESSION_LIFETIME 7 years ago
Daniel Supernault 0c8327649c
Update .env.testing to fix upstream bug 7 years ago
Daniel Supernault 8c2c19b8e9
Update .env.testing to fix upstream bug 7 years ago
Daniel Supernault 04f3dbe4bc
Update tests 7 years ago
trwnh 962c36d4f6
Update .env.testing 7 years ago
Kirk Strauser 5d263d1c2e
PixelFed -> Pixelfed
There was a remaining mix of capital-F "PixelFed" occurrences. This
changes everything to the same capitalization, "Pixelfed", for
consistency.
7 years ago
Daniel Supernault a35d5ab1d6
Fix .env.testing 7 years ago
Shlee 6336f831fe
Update .env.testing 7 years ago
Shleeble d94539a2cb
Update .env.testing 8 years ago
Daniel Supernault e620fd9abf
Update .envs 8 years ago
Daniel Supernault b67a1c6930
Update .env.testing 8 years ago
Daniel Supernault 13e1b51140
Fix tests 8 years ago
Daniel Supernault 3a3f0e64c9
Update testing env 8 years ago
Daniel Supernault 714e47f387
Add Accept validator/test 8 years ago
Daniel Supernault 54f996b853
Add testing .env file 8 years ago