The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
[CI] Jest sharding integration tests (#12400)
Paul Rastoin3233734d2cc7
diff --git a/.github/workflows/actions/nx-affected/action.yaml b/.github/workflows/actions/nx-affected/action.yamlindex c87a8a1e39d..dfb66443063 100644--- a/.github/workflows/actions/nx-affected/action.yaml+++ b/.github/workflows/actions/nx-affected/action.yaml@@ -10,7 +10,8 @@ inputs:configuration:required: falsedefault: 'ci'-+ args:+ required: falseruns:using: "composite"steps:@@ -18,4 +19,4 @@ runs:uses: nrwl/nx-set-shas@v4- name: Run affected commandshell: bash- run: npx nx affected --nxBail --configuration=${{ inputs.configuration }} -t=${{ inputs.tasks }} --parallel=${{ inputs.parallel }} --exclude='*,!tag:${{ inputs.tag }}'\ No newline at end of file+ run: npx nx affected --nxBail --configuration=${{ inputs.configuration }} -t=${{ inputs.tasks }} --parallel=${{ inputs.parallel }} --exclude='*,!tag:${{ inputs.tag }}' ${{ inputs.args }}\ No newline at end of filediff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yamlindex c20f343ce0a..d25cc122fcb 100644--- a/.github/workflows/ci-server.yaml+++ b/.github/workflows/ci-server.yaml@@ -145,6 +145,10 @@ jobs:timeout-minutes: 30runs-on: depot-ubuntu-24.04-8needs: server-setup+ strategy:+ fail-fast: false+ matrix:+ shard: [1, 2, 3, 4]services:postgres:image: twentycrm/twenty-postgres-spilo@@ -183,6 +187,7 @@ jobs:ANALYTICS_ENABLED: trueCLICKHOUSE_URL: "http://default:clickhousePassword@localhost:8123/twenty"CLICKHOUSE_PASSWORD: clickhousePassword+ SHARD_COUNTER: 4steps:- name: Fetch custom Github Actions and base branch historyuses: actions/checkout@v4@@ -220,12 +225,7 @@ jobs:tag: scope:backendtasks: 'test:integration'configuration: 'with-db-reset'- - name: Server / Upload reset-logs file- if: always()- uses: actions/upload-artifact@v4- with:- name: reset-logs- path: reset-logs.log+ args: --shard=${{ matrix.shard }}/${{ env.SHARD_COUNTER }}ci-server-status-check:if: always() && !cancelled()timeout-minutes: 5