Skip to content

Commit 04932c7

Browse files
committed
Add service availability check to CI workflow
- Added new 'service-check' job in GitHub workflow - Implemented steps to build and start docker services for testing - Added verification step using scripts/check_services.sh - Included cleanup to ensure services are stopped after testing
1 parent 43c47a4 commit 04932c7

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/code-quality.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,21 @@ jobs:
4040
run: docker run --rm -i hadolint/hadolint < Dockerfile.n8n
4141
- name: Lint Dockerfile.temporal
4242
run: docker run --rm -i hadolint/hadolint < Dockerfile.temporal
43+
44+
service-check:
45+
name: Service Availability Check
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout code
49+
uses: actions/checkout@v4
50+
- name: Set up Docker Compose
51+
uses: docker/setup-buildx-action@v2
52+
- name: Build services with no cache
53+
run: docker compose build --no-cache
54+
- name: Start services
55+
run: docker compose up -d
56+
- name: Verify services
57+
run: bash scripts/check_services.sh
58+
- name: Stop services
59+
run: docker compose down
60+
if: always()

docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ services:
1313
networks:
1414
- app-network
1515
user: node
16-
depends_on:
17-
postgresql:
18-
condition: service_healthy
1916

2017
# Temporal services
2118
elasticsearch:

0 commit comments

Comments
 (0)