mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
## Summary - **Merge queue optimization**: Created a dedicated `ci-merge-queue.yaml` workflow that only runs Playwright E2E tests on `ubuntu-latest-8-cores`. Removed `merge_group` trigger from all 7 existing CI workflows (front, server, shared, website, sdk, zapier, docker-compose). The merge queue goes from ~30+ parallel jobs to a single focused E2E job. - **Label-based merge queue simulation**: Added `run-merge-queue` label support so developers can trigger the exact merge queue E2E pipeline on any open PR before it enters the queue. - **Prettier in lint**: Chained `prettier --check` into `lint` and `prettier --write` into `lint --configuration=fix` across `nx.json` defaults, `twenty-front`, and `twenty-server`. Prettier formatting errors are now caught by `lint` and fixed by `lint:fix` / `lint:diff-with-main --configuration=fix`. ## After merge (manual repo settings) Update GitHub branch protection required status checks: 1. Remove old per-workflow merge queue checks (`ci-front-status-check`, `ci-e2e-status-check`, `ci-server-status-check`, etc.) 2. Add `ci-merge-queue-status-check` as the required check for the merge queue
79 lines
1.9 KiB
JSON
79 lines
1.9 KiB
JSON
{
|
|
"name": "twenty-zapier",
|
|
"projectType": "application",
|
|
"tags": ["scope:zapier"],
|
|
"targets": {
|
|
"build": {
|
|
"outputs": ["{projectRoot}/lib"],
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["npx vite build"]
|
|
},
|
|
"dependsOn": ["clean", "^build"]
|
|
},
|
|
"format": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["prettier . --write \"!build\""]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["NODE_ENV=test jest --testTimeout 10000"]
|
|
}
|
|
},
|
|
"lint": {},
|
|
"typecheck": {},
|
|
"validate": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["zapier validate"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"versions": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["zapier versions"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"watch": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["nx run twenty-zapier:clean && npx tsc --watch"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"clean": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["rimraf ./lib"]
|
|
}
|
|
},
|
|
"deploy": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["zapier push --disable-dependency-detection"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"promote": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["zapier promote"]
|
|
},
|
|
"dependsOn": ["build"]
|
|
}
|
|
}
|
|
}
|