Use this page for the checks that keep the codebase healthy before merge or release.
Main commands
Run the application test suite:
Run static analysis:
vendor/bin/phpstan analyse
Run formatting:
Format or check frontend-oriented source files:
npm run format
npm run format:check
Build verification
Before release, also run:
This catches asset-pipeline issues that do not appear during normal PHP-only checks.
Testing environment notes
The repository includes .env.testing, and the broader Laravel workflow assumes test runs should not share the same database as daily development.
Recommended practice:
- keep a separate testing database
- make sure
.env.testing points to it
- do not run destructive test flows against your normal local database
What to test first
For this codebase, prioritize tests around:
- checkout flows
- payment webhooks
- subscription lifecycle changes
- authentication and verification flows
- provider-specific integrations that are enabled for the release
The visible test suite already covers legal pages, referrals, balance handling, top-up flows, and several core services. Webhook-specific and auth-provider regressions still deserve explicit release testing because they are easier to miss.
Release minimum
A practical first-release quality bar is:
vendor/bin/phpunit
vendor/bin/phpstan analyse
vendor/bin/pint
npm run build
If one of these fails, treat the release as not ready. Last modified on March 30, 2026