Skip to content

Tests, Larastan Level 5, Pint, CI/CD & Laravel Boost - #2

Merged
striker561 merged 5 commits into
mainfrom
tests/larastan-and-service-tests
Jul 2, 2026
Merged

Tests, Larastan Level 5, Pint, CI/CD & Laravel Boost#2
striker561 merged 5 commits into
mainfrom
tests/larastan-and-service-tests

Conversation

@striker561

Copy link
Copy Markdown
Owner

Summary

Full testing & static analysis pipeline + AI-assisted development setup.

What's included

Testing Infrastructure

  • 31 service tests covering all 9 services (48 assertions)
  • 11 Fortify auth tests (login, logout, password reset)
  • phpunit.xml with SQLite in-memory config
  • Base TestCase class

Static Analysis

  • Larastan at level 5 — 0 errors
  • Fixed factory foreign keys, morphTo owner keys, enum type safety

Code Style & CI/CD

  • Pint scripts: lint + test:lint
  • PHPStan analyse script
  • GitHub Actions workflow on PRs & main

AI-Assisted Development

  • laravel/boost with AI guidelines & agent skills
  • AGENTS.md, boost.json

- Install laravel/boost and publish config
- Add Pint (lint / test:lint) and Larastan (analyse) scripts
- Update `test` script to run lint → analyse → phpunit
- Create .github/workflows/ci.yml for PRs and main branch
- Fix factory foreign keys to use unique_id (UUID) throughout
- Fix ActivityLog model to disable unique_id generation
- Fix morphTo relationships to use unique_id as owner key
- Fix Milestone is_completed accessor and service
- Make NotificationService::createNotification() public
- Remove default starter ExampleTest.php files
- Fix all 31 service tests (48 assertions) passing
- Fix all Larastan level 5 errors (23 → 0)
11 tests covering authentication, login validation, logout, password
reset flow, token validation, and registration redirect.
- Install AI guidelines (Laravel, Livewire, Volt, FluxUI, Pest, Tailwind)
- Install agent skills (FluxUI, Fortify, Laravel, Livewire, Pest, Tailwind, Volt)
- Generate AGENTS.md and boost.json configuration
test naming
fixed missing import that causes test to fail
@striker561
striker561 merged commit b9fafcf into main Jul 2, 2026
1 check failed
@striker561
striker561 deleted the tests/larastan-and-service-tests branch July 2, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant