Skip to content

Commit

Permalink
Fix worker run ci step (twentyhq#7437)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
Weiko authored and harshit078 committed Oct 14, 2024
1 parent b0c7822 commit f53381b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions packages/twenty-server/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit f53381b

Please sign in to comment.