Skip to content

Commit 116bb9a

Browse files
authored
Fix Workshop Service Test Environment Setup (#331)
* Fix workshop and identity test setup by waiting for databases Added --wait flag to docker compose up command to ensure PostgreSQL and MongoDB are fully healthy before running tests. This prevents test failures due to database connection issues when services aren't ready.
1 parent f254d7b commit 116bb9a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pr-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ jobs:
217217
go-version: '1.23'
218218

219219
- name: Start the database
220-
run: docker compose -f services/docker-database.yml up -d
220+
run: docker compose -f services/docker-database.yml up -d --wait
221221

222222
- name: Run identity tests
223223
run: |
@@ -241,6 +241,11 @@ jobs:
241241
working-directory: services/community
242242

243243

244+
- name: Install system dependencies for workshop
245+
run: |
246+
sudo apt-get update
247+
sudo apt-get install -y libcairo2-dev pkg-config python3-dev
248+
244249
- name: Run workshop tests
245250
run: |
246251
cd services/workshop

0 commit comments

Comments
 (0)