mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-04 13:21:45 +00:00
ci/cd: remove wait for LDAP sync
This commit is contained in:
18
.github/workflows/e2e-tests.yml
vendored
18
.github/workflows/e2e-tests.yml
vendored
@@ -116,9 +116,6 @@ jobs:
|
|||||||
|
|
||||||
docker logs -f pocket-id-sqlite &> /tmp/backend.log &
|
docker logs -f pocket-id-sqlite &> /tmp/backend.log &
|
||||||
|
|
||||||
- name: Wait for backend to sync LDAP data
|
|
||||||
run: sleep 10
|
|
||||||
|
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
run: npx playwright test
|
run: npx playwright test
|
||||||
@@ -227,9 +224,14 @@ jobs:
|
|||||||
-p 5432:5432 \
|
-p 5432:5432 \
|
||||||
postgres:17
|
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
|
- name: Wait for Postgres to start
|
||||||
run: |
|
run: |
|
||||||
for i in {1..10}; do
|
for i in {1..5}; do
|
||||||
if docker exec pocket-id-db pg_isready -U postgres; then
|
if docker exec pocket-id-db pg_isready -U postgres; then
|
||||||
echo "Postgres is ready"
|
echo "Postgres is ready"
|
||||||
break
|
break
|
||||||
@@ -238,11 +240,6 @@ jobs:
|
|||||||
sleep 2
|
sleep 2
|
||||||
done
|
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
|
- name: Run Docker Container with Postgres DB and LDAP
|
||||||
run: |
|
run: |
|
||||||
docker run -d --name pocket-id-postgres \
|
docker run -d --name pocket-id-postgres \
|
||||||
@@ -255,9 +252,6 @@ jobs:
|
|||||||
|
|
||||||
docker logs -f pocket-id-postgres &> /tmp/backend.log &
|
docker logs -f pocket-id-postgres &> /tmp/backend.log &
|
||||||
|
|
||||||
- name: Wait for backend to sync LDAP data
|
|
||||||
run: sleep 10
|
|
||||||
|
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
run: npx playwright test
|
run: npx playwright test
|
||||||
|
|||||||
Reference in New Issue
Block a user