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:
13
.github/workflows/ci-server.yaml
vendored
13
.github/workflows/ci-server.yaml
vendored
@ -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
|
||||
|
||||
@ -1 +1 @@
|
||||
export const QUERY_MAX_RECORDS = 60;
|
||||
export const QUERY_MAX_RECORDS = 100;
|
||||
|
||||
Reference in New Issue
Block a user