#!/usr/bin/env sh
set -eu

composer validate --strict
composer install --no-interaction --prefer-dist
composer lint
composer analyse
vendor/bin/phpunit
sh scripts/migrate.sh
curl -fsS http://php/health >/dev/null
curl -fsS http://php/api/v1/health/database >/dev/null
curl -fsS http://php/api/v1/health/redis >/dev/null
curl -fsS http://realtime:8787/health >/dev/null
