Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/benchmark-community-world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ jobs:
sleep 2
done

- name: Start SurrealDB
if: ${{ inputs.service-type == 'surrealdb' }}
run: |
docker run -d --name surrealdb -p 8000:8000 \
surrealdb/surrealdb:v3 \
start --user root --pass root --bind 0.0.0.0:8000 memory
echo "Waiting for SurrealDB to be ready..."
for i in {1..30}; do
if curl -sf http://localhost:8000/health &>/dev/null; then
echo "SurrealDB is ready"
break
fi
sleep 2
done

- name: Setup environment
uses: ./.github/actions/setup-workflow-dev
with:
Expand Down Expand Up @@ -143,3 +158,4 @@ jobs:
run: |
docker stop mongodb 2>/dev/null || true
docker stop redis 2>/dev/null || true
docker stop surrealdb 2>/dev/null || true
16 changes: 16 additions & 0 deletions .github/workflows/e2e-community-world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ jobs:
sleep 2
done

- name: Start SurrealDB
if: ${{ inputs.service-type == 'surrealdb' }}
run: |
docker run -d --name surrealdb -p 8000:8000 \
surrealdb/surrealdb:v3 \
start --user root --pass root --bind 0.0.0.0:8000 memory
echo "Waiting for SurrealDB to be ready..."
for i in {1..30}; do
if curl -sf http://localhost:8000/health &>/dev/null; then
echo "SurrealDB is ready"
break
fi
sleep 2
done

- name: Setup environment
uses: ./.github/actions/setup-workflow-dev
with:
Expand Down Expand Up @@ -135,3 +150,4 @@ jobs:
run: |
docker stop mongodb 2>/dev/null || true
docker stop redis 2>/dev/null || true
docker stop surrealdb 2>/dev/null || true
4 changes: 2 additions & 2 deletions scripts/create-community-worlds-matrix.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const matrix = {
let serviceType = 'none';
if (world.services && world.services.length > 0) {
// Use the first service's name as the service type
// Currently supports: mongodb, redis
// Currently supports: mongodb, redis, surrealdb
const serviceName = world.services[0].name;
if (['mongodb', 'redis'].includes(serviceName)) {
if (['mongodb', 'redis', 'surrealdb'].includes(serviceName)) {
serviceType = serviceName;
}
}
Expand Down
32 changes: 32 additions & 0 deletions worlds-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,38 @@
}
]
},
{
"id": "surrealdb",
"type": "community",
"package": "workflow-world-surrealdb",
"name": "SurrealDB",
"description": "SurrealDB world using LIVE SELECT for queueing and real-time streaming",
"repository": "https://github.com/sepcnt/workflow-world-surrealdb",
"docs": "https://github.com/sepcnt/workflow-world-surrealdb",
"features": [],
"env": {
"WORKFLOW_TARGET_WORLD": "workflow-world-surrealdb",
"WORKFLOW_SURREAL_URL": "ws://127.0.0.1:8000/rpc",
"WORKFLOW_SURREAL_NAMESPACE": "workflow",
"WORKFLOW_SURREAL_DATABASE": "workflow",
"WORKFLOW_SURREAL_USERNAME": "root",
"WORKFLOW_SURREAL_PASSWORD": "root"
},
"services": [
{
"name": "surrealdb",
"image": "surrealdb/surrealdb:v3",
"ports": ["8000:8000"],
"healthCheck": {
"cmd": "curl -sf http://localhost:8000/health || exit 1",
"interval": "5s",
"timeout": "3s",
"retries": 10
}
}
],
"setup": "pnpm exec workflow-surreal-setup"
},
{
"id": "jazz",
"type": "community",
Expand Down