chore: sync infra docs and coverage
Some checks failed
CI / Backend Tests (push) Failing after 2m41s
CI / Frontend Tests (push) Successful in 2m14s
CI / Build Docker Images (push) Has been skipped

This commit is contained in:
2025-10-16 22:41:22 -05:00
parent a553b14017
commit 252775faf3
109 changed files with 29696 additions and 208 deletions

View File

@@ -1,23 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.test.yml}"
echo ">>> Running backend lint locally"
(cd backend && npm run lint)
cleanup() {
docker compose -f "${COMPOSE_FILE}" down -v >/dev/null 2>&1 || true
}
echo ">>> Running frontend lint locally"
(cd frontend && npm run lint)
cleanup
trap cleanup EXIT
echo ">>> Running backend test suite"
(cd backend && npm test -- --runInBand --coverage)
run_stage() {
local service="$1"
echo ">>> Running ${service} tests inside container"
docker compose -f "${COMPOSE_FILE}" build "${service}"
docker compose -f "${COMPOSE_FILE}" run --rm "${service}"
}
echo ">>> Running frontend test suite"
(cd frontend && npm test -- --watchAll=false --coverage)
run_stage backend-tester
run_stage frontend-tester
echo "All CI test stages completed successfully (containers only)."
echo "All CI test stages completed successfully."