From de648dd6daac8af51bed4fba695cc3c0e4a79039 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Wed, 7 May 2025 16:39:05 +0200 Subject: [PATCH] ci/cd: remove wait for LDAP sync --- .github/workflows/e2e-tests.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index db5111de..054307cf 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -116,9 +116,6 @@ jobs: docker logs -f pocket-id-sqlite &> /tmp/backend.log & - - name: Wait for backend to sync LDAP data - run: sleep 10 - - name: Run Playwright tests working-directory: ./frontend run: npx playwright test @@ -227,9 +224,14 @@ jobs: -p 5432:5432 \ postgres:17 + - name: Setup and Configure LLDAP Server + run: | + chmod +x ./scripts/tests/setup-lldap.sh + ./scripts/tests/setup-lldap.sh + - name: Wait for Postgres to start run: | - for i in {1..10}; do + for i in {1..5}; do if docker exec pocket-id-db pg_isready -U postgres; then echo "Postgres is ready" break @@ -238,11 +240,6 @@ jobs: sleep 2 done - - name: Setup and Configure LLDAP Server - run: | - chmod +x ./scripts/tests/setup-lldap.sh - ./scripts/tests/setup-lldap.sh - - name: Run Docker Container with Postgres DB and LDAP run: | docker run -d --name pocket-id-postgres \ @@ -255,9 +252,6 @@ jobs: docker logs -f pocket-id-postgres &> /tmp/backend.log & - - name: Wait for backend to sync LDAP data - run: sleep 10 - - name: Run Playwright tests working-directory: ./frontend run: npx playwright test