This directory contains GitHub Actions workflows for automated testing, security auditing, and production preparation.
Triggers: Push to main/develop, Pull Requests to main/develop
Comprehensive production preparation suite that runs:
- PHP Linting (Pint)
- JavaScript Linting (ESLint)
- JavaScript Formatting Check (Prettier)
- PHP Tests (Pest)
- JavaScript Tests (Vitest)
- Browser Tests (Dusk)
- Filament Tests
- Security Audit
- Production Build Test
Triggers: Push to main/develop, Pull Requests to main/develop
Runs PHP tests across multiple PHP versions (8.2, 8.3, 8.4):
- PHP Linting (Pint)
- PHP Tests (Pest) with coverage
- Database migrations and seeding
Triggers: Push to main/develop, Pull Requests to main/develop
Runs JavaScript tests across multiple Node.js versions (18, 20, 22):
- JavaScript Linting (ESLint)
- JavaScript Formatting Check (Prettier)
- JavaScript Tests (Vitest)
- Frontend build
Triggers: Push to main/develop, Pull Requests to main/develop
Runs Laravel Dusk browser tests:
- Chrome and ChromeDriver setup
- Database setup
- Frontend build
- Dusk test execution
- Screenshot and console log artifacts on failure
Triggers: Push to main/develop, Pull Requests to main/develop, Weekly schedule
Performs security audits:
- PHP security vulnerabilities (Composer)
- NPM security vulnerabilities
- Outdated dependencies check
- Unused dependencies check
- Configuration validation
# Using Composer
composer run prepforprod
# Using NPM
npm run prepforprod
# Using Make
make prepforprod# PHP Tests
php artisan test
vendor/bin/pint --test
# JavaScript Tests
npm run test
npm run lint
npm run format:check
# Browser Tests
php artisan dusk
# Build
npm run buildThe workflows automatically:
- Install PHP 8.4 with required extensions
- Install Node.js 20
- Install Composer and NPM dependencies
- Set up SQLite database for testing
- Run migrations and seeders
- Build frontend assets
Failed workflows upload:
- Test results and logs
- Screenshots (Dusk tests)
- Console logs (Dusk tests)
- Coverage reports (PHP tests)
- Build artifacts (JavaScript)
Workflows automatically comment on Pull Requests with:
- Test results summary
- Security audit results
- Next steps recommendations
- All workflows run on every push to
mainanddevelop - Pull requests are automatically tested
- Security audits run weekly
- Failed workflows notify via GitHub notifications