fix server ci integration (#10296)
Now that the CI is running, I'm trying to fix the tests
This commit is contained in:
6
.github/workflows/ci-server.yaml
vendored
6
.github/workflows/ci-server.yaml
vendored
@ -195,15 +195,15 @@ jobs:
|
|||||||
npx nx build twenty-shared
|
npx nx build twenty-shared
|
||||||
npx nx build twenty-emails
|
npx nx build twenty-emails
|
||||||
- name: Server / Create Test DB
|
- name: Server / Create Test DB
|
||||||
|
env:
|
||||||
|
NODE_ENV: test
|
||||||
run: |
|
run: |
|
||||||
PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres -d postgres -c 'CREATE DATABASE "test";'
|
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
|
- name: Server / Run Integration Tests
|
||||||
uses: ./.github/workflows/actions/nx-affected
|
uses: ./.github/workflows/actions/nx-affected
|
||||||
with:
|
with:
|
||||||
tag: scope:backend
|
tag: scope:backend
|
||||||
tasks: 'test:integration --configuration=with-db-reset'
|
tasks: 'test:integration:with-db-reset'
|
||||||
- name: Server / Upload reset-logs file
|
- name: Server / Upload reset-logs file
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
export const QUERY_MAX_RECORDS = 100;
|
export const QUERY_MAX_RECORDS = 60;
|
||||||
|
|||||||
Reference in New Issue
Block a user