Compare commits

...

4 Commits

Author SHA1 Message Date
mahula
71ddec3d67 due to breaking update pin directus-sync version 2025-09-28 19:43:06 +02:00
mahula
b76484542a due to breaking update pin directus-sync version 2025-09-28 19:21:27 +02:00
mahula
6ca405b07e due to breaking update pin directus-sync version 2025-09-28 19:11:40 +02:00
mahula
e5bd4b3db1 add database health check step to e2e test workflow 2025-09-28 18:40:09 +02:00
3 changed files with 9 additions and 3 deletions

View File

@ -41,6 +41,12 @@ jobs:
- name: Build and start all Containers
run: docker compose up -d
- name: Wait for Directus to be Ready
run: |
echo "Waiting for Directus API to be ready..."
timeout 120 bash -c 'until curl -f http://localhost:8055/server/health; do echo "Waiting for Directus..."; sleep 5; done'
echo "Directus is ready!"
- name: Seed Backend
run: |
mkdir -p ./data/uploads

View File

@ -1,6 +1,6 @@
{
"name": "directus-extensions",
"dependencies": {
"directus-extension-sync": "^3.0.4"
"directus-extension-sync": "3.0.4"
}
}

View File

@ -16,7 +16,7 @@ PROJECT_NAME="${PROJECT:-development}"
PROJECT_FOLDER=$SCRIPT_DIR/directus-config/$PROJECT_NAME
echo "Sync collections"
npx directus-sync push \
npx directus-sync@3.4.0 push \
--dump-path $PROJECT_FOLDER \
--directus-url $DIRECTUS_URL \
--directus-email $DIRECTUS_EMAIL \
@ -24,7 +24,7 @@ npx directus-sync push \
|| exit 1
echo "Seed data"
npx directus-sync seed push \
npx directus-sync@3.4.0 seed push \
--seed-path $PROJECT_FOLDER/seed \
--directus-url $DIRECTUS_URL \
--directus-email $DIRECTUS_EMAIL \