| name | health-check |
| description | Comprehensive health check that runs build, test, lint, builds docker containers, checks container health/status, and reports to the user. |
Comprehensive Health Check
Run a full end-to-end local health check on the project.
Instructions
Run the following checks sequentially:
-
Build the Code:
cargo build --bins
-
Test the Code:
cargo test --all
-
Lint:
cargo clippy -- -D warnings
-
Build Docker Containers:
docker compose -f docker/docker-compose.yml build
-
Start the Containers:
docker compose -f docker/docker-compose.yml up -d
-
Check Container Health/Status:
sleep 5
docker compose -f docker/docker-compose.yml ps
docker compose -f docker/docker-compose.yml logs --tail=50
-
Clean up:
docker compose -f docker/docker-compose.yml down
-
Report to the User:
Clearly report whether each phase (Build, Test, Lint, Docker Build, Health Check) passed or failed, and provide relevant error logs if any step failed.