From bd305c84320fce442b6237a02c5a4f8e84452fac Mon Sep 17 00:00:00 2001 From: Weiko Date: Fri, 4 Oct 2024 19:28:29 +0200 Subject: [PATCH] Fix worker run ci step (#7437) ## Context Updating the Worker / Run step to run in sync mode with in-memory cache type so it does not hang forever in the CI. --- .github/workflows/ci-server.yaml | 2 +- packages/twenty-server/project.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index 857dec2fc..074d63fdd 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -54,7 +54,7 @@ jobs: - name: Server / Write .env run: npx nx reset:env twenty-server - name: Worker / Run - run: MESSAGE_QUEUE_TYPE=sync npx nx worker twenty-server + run: npx nx run twenty-server:worker:ci server-test: runs-on: ubuntu-latest diff --git a/packages/twenty-server/project.json b/packages/twenty-server/project.json index a31ff4fb1..ed8ad716b 100644 --- a/packages/twenty-server/project.json +++ b/packages/twenty-server/project.json @@ -77,6 +77,14 @@ "options": { "cwd": "packages/twenty-server", "command": "node dist/src/queue-worker/queue-worker.js" + }, + "configurations": { + "ci": { + "env": { + "MESSAGE_QUEUE_TYPE": "sync", + "CACHE_STORAGE_TYPE": "memory" + } + } } }, "typeorm": {