From 5680e334ad73238e29ed3f5fc4cd1d54b7520885 Mon Sep 17 00:00:00 2001 From: githubutsav Date: Thu, 25 Jun 2026 10:35:23 +0000 Subject: [PATCH] ci: validate required services in compose --- .github/workflows/hello.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index 28fdbab..398abcc 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -1,6 +1,10 @@ name: Homelab CI on: + pull_request: + branches: + - main + push: branches: - main @@ -18,3 +22,11 @@ jobs: - name: Validate Monitoring Docker Compose run: docker compose -f monitoring/docker-compose.yml config + + - name: Verify Expected Services Exist + run: | + services=$(docker compose config --services) + + echo "$services" | grep nginx + echo "$services" | grep postgres + echo "$services" | grep redis