#!/usr/bin/env bash
set -euo pipefail
php -v
composer validate --strict
composer install --no-interaction --prefer-dist
npm ci || npm install
npm run build
php artisan key:generate --force
php artisan migrate:fresh --seed --force
php artisan test
php artisan migrate:rollback --step=1 --force
php artisan migrate --force
php artisan route:list
php artisan config:cache
php artisan route:cache
php artisan view:cache
npm run test:e2e
curl --fail http://127.0.0.1:8000/health/production
