ci: stabilize pipeline
All checks were successful
CI / Backend Tests (push) Successful in 31s
CI / Frontend Tests (push) Successful in 1m43s
CI / Build Docker Images (push) Successful in 4m45s

This commit is contained in:
2025-10-16 21:00:39 -05:00
parent 96dc42f0eb
commit a553b14017
12 changed files with 204 additions and 102 deletions

23
scripts/run-ci-tests.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -euo pipefail
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.test.yml}"
cleanup() {
docker compose -f "${COMPOSE_FILE}" down -v >/dev/null 2>&1 || true
}
cleanup
trap cleanup EXIT
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}"
}
run_stage backend-tester
run_stage frontend-tester
echo "All CI test stages completed successfully (containers only)."