Skip to content

The open alternative to Salesforce, designed for AI.

fix server ci integration (#10296)

Weiko5cf0a71d1210
diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml
index 6b8952cfef0..6e12499d923 100644
--- a/.github/workflows/ci-server.yaml
+++ b/.github/workflows/ci-server.yaml
@@ -195,15 +195,15 @@ jobs:
npx nx build twenty-shared
npx nx build twenty-emails
- name: Server / Create Test DB
+ env:
+ NODE_ENV: test
run: |
PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres -d postgres -c 'CREATE DATABASE "test";'
- PG_DATABASE_URL=postgres://postgres:postgres@localhost:5432/test npx nx run twenty-server:database:init:prod
- PG_DATABASE_URL=postgres://postgres:postgres@localhost:5432/test npx nx run twenty-server:database:migrate:prod
- name: Server / Run Integration Tests
uses: ./.github/workflows/actions/nx-affected
with:
tag: scope:backend
- tasks: 'test:integration --configuration=with-db-reset'
+ tasks: 'test:integration:with-db-reset'
- name: Server / Upload reset-logs file
if: always()
uses: actions/upload-artifact@v4
diff --git a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/constants/query-max-records.constant.ts b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/constants/query-max-records.constant.ts
index 1deb47503fa..e9e1c71915a 100644
--- a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/constants/query-max-records.constant.ts
+++ b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/constants/query-max-records.constant.ts
@@ -1 +1 @@
-export const QUERY_MAX_RECORDS = 100;
+export const QUERY_MAX_RECORDS = 60;