Fix integration test ci (#10226)

## Context
Integration test ci was not running properly. This PR should fix that

Todo: This was not running for a while, many tests are not succeeding so
I'll try to fix them in this PR now that the action is running properly.
This commit is contained in:
Weiko
2025-02-17 11:45:44 +01:00
committed by GitHub
parent 896ff1dc2e
commit 2ba9f2d0e5
2 changed files with 13 additions and 2 deletions

View File

@ -188,11 +188,22 @@ jobs:
uses: ./.github/workflows/actions/restore-cache
with:
key: ${{ env.SERVER_SETUP_CACHE_KEY }}
- name: Server / Build
run: npx nx build twenty-server
- name: Build dependencies
run: |
npx nx build twenty-shared
npx nx build twenty-emails
- name: Server / Create Test DB
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:with-db-reset'
tasks: 'test:integration --configuration=with-db-reset'
- name: Server / Upload reset-logs file
if: always()
uses: actions/upload-artifact@v4

View File

@ -1 +1 @@
export const QUERY_MAX_RECORDS = 60;
export const QUERY_MAX_RECORDS = 100;