The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix CI cache for storybook (#14038)
Charles Bochet953f1e7207a2
diff --git a/.github/workflows/actions/restore-cache/action.yaml b/.github/workflows/actions/restore-cache/action.yamlindex 29a1ea7eebe..35133dd0cac 100644--- a/.github/workflows/actions/restore-cache/action.yaml+++ b/.github/workflows/actions/restore-cache/action.yaml@@ -29,7 +29,7 @@ runs:restore-keys: ${{ steps.cache-primary-key-builder.outputs.CACHE_PRIMARY_KEY_PREFIX }}-path: |.cache- .nx/cache+ .nxnode_modules/.cachepackages/*/node_modules/.cache${{ inputs.additional-paths }}\ No newline at end of filediff --git a/.github/workflows/actions/save-cache/action.yaml b/.github/workflows/actions/save-cache/action.yamlindex b51a5d478bd..6ef14fe5300 100644--- a/.github/workflows/actions/save-cache/action.yaml+++ b/.github/workflows/actions/save-cache/action.yaml@@ -15,7 +15,7 @@ runs:key: ${{ inputs.key }}path: |.cache- .nx/cache+ .nxnode_modules/.cachepackages/*/node_modules/.cache${{ inputs.additional-paths }}\ No newline at end of filediff --git a/.github/workflows/ci-breaking-changes.yaml b/.github/workflows/ci-breaking-changes.yamlindex 172b919b854..0d4fb499ad4 100644--- a/.github/workflows/ci-breaking-changes.yaml+++ b/.github/workflows/ci-breaking-changes.yaml@@ -35,8 +35,6 @@ jobs:if: needs.changed-files-check.outputs.any_changed == 'true'timeout-minutes: 45runs-on: depot-ubuntu-24.04-8- env:- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0services:postgres:image: twentycrm/twenty-postgres-spilodiff --git a/.github/workflows/ci-demo-check.yml b/.github/workflows/ci-demo-check.ymldeleted file mode 100644index 5340ff0037a..00000000000--- a/.github/workflows/ci-demo-check.yml+++ /dev/null@@ -1,63 +0,0 @@-name: CI Demo check-on:- schedule:- - cron: '30 7,19 * * *'- workflow_dispatch:--concurrency:- group: ${{ github.workflow }}-${{ github.ref }}- cancel-in-progress: true--jobs:- test:- timeout-minutes: 15- runs-on: ubuntu-latest- defaults:- run:- working-directory: ./packages/twenty-e2e-testing- steps:- - uses: actions/checkout@v4- with:- fetch-depth: 0- - uses: actions/setup-node@v4- with:- node-version: lts/*-- - name: Install dependencies- uses: ./.github/workflows/actions/yarn-install-- - name: Install Playwright Browsers- run: yarn playwright install --with-deps-- - name: Run Playwright tests- id: test- run: yarn playwright test --grep "@demo-only"-- - name: Upload report after tests- uses: actions/upload-artifact@v4- with:- name: playwright-report- path: playwright-report/- retention-days: 90-- - name: Send Discord notification- env:- DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}- uses: Ilshidur/[email protected]- with:- args: 'Demo check ${{ steps.test.outcome }} - check ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'-- - name: Send email if demo is not working- if: steps.test.outcome == 'failure'- uses: dawidd6/[email protected]- with:- connection_url: ${{ secrets.MAIL_CONNECTION }}- server_address: smtp.gmail.com- server_port: 465- secure: true- username: ${{ secrets.MAIL_USERNAME }}- subject: 'Demo is not working'- from: 'Github CI Demo check'- to: ${{ secrets.RECIPIENTS }}- body: '<a href="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}">Link</a>'- priority: high\ No newline at end of filediff --git a/.github/workflows/ci-e2e.yaml b/.github/workflows/ci-e2e.yamlindex b965ef67e73..3fe51a154da 100644--- a/.github/workflows/ci-e2e.yaml+++ b/.github/workflows/ci-e2e.yaml@@ -24,7 +24,6 @@ jobs:if: needs.changed-files-check.outputs.any_changed == 'true' && ( github.event_name == 'push' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-e2e')))timeout-minutes: 30env:- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0# https://github.com/actions/runner-images/issues/70#issuecomment-589562148NODE_OPTIONS: "--max-old-space-size=10240"services:diff --git a/.github/workflows/ci-emails.yaml b/.github/workflows/ci-emails.yamlindex 357c87a1972..13c043b7693 100644--- a/.github/workflows/ci-emails.yaml+++ b/.github/workflows/ci-emails.yaml@@ -22,8 +22,6 @@ jobs:if: needs.changed-files-check.outputs.any_changed == 'true'timeout-minutes: 10runs-on: depot-ubuntu-24.04-8- env:- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0steps:- name: Fetch custom Github Actions and base branch historyuses: actions/checkout@v4diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yamlindex 33da7059ca5..89a1c09c9d8 100644--- a/.github/workflows/ci-front.yaml+++ b/.github/workflows/ci-front.yaml@@ -29,7 +29,6 @@ jobs:runs-on: depot-ubuntu-24.04-8env:REACT_APP_SERVER_BASE_URL: http://localhost:3000- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0steps:- name: Cancel Previous Runsuses: styfle/[email protected]@@ -68,7 +67,6 @@ jobs:env:SHARD_COUNTER: 4REACT_APP_SERVER_BASE_URL: http://localhost:3000- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0steps:- name: Fetch local actionsuses: actions/checkout@v4@@ -128,7 +126,6 @@ jobs:env:REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0steps:- uses: actions/checkout@v4with:@@ -152,7 +149,6 @@ jobs:timeout-minutes: 30runs-on: depot-ubuntu-24.04-8env:- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0TASK_CACHE_KEY: front-task-${{ matrix.task }}strategy:matrix:diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yamlindex 859ca73e794..86945f10d82 100644--- a/.github/workflows/ci-server.yaml+++ b/.github/workflows/ci-server.yaml@@ -29,8 +29,6 @@ jobs:if: needs.changed-files-check.outputs.any_changed == 'true'timeout-minutes: 30runs-on: depot-ubuntu-24.04-8- env:- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0services:postgres:image: twentycrm/twenty-postgres-spilo@@ -144,8 +142,6 @@ jobs:timeout-minutes: 30runs-on: depot-ubuntu-24.04-8needs: server-setup- env:- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0steps:- name: Fetch custom Github Actions and base branch historyuses: actions/checkout@v4@@ -204,7 +200,6 @@ jobs:--health-timeout 5s--health-retries 5env:- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0NODE_ENV: testANALYTICS_ENABLED: trueCLICKHOUSE_URL: "http://default:clickhousePassword@localhost:8123/twenty"diff --git a/.github/workflows/ci-shared.yaml b/.github/workflows/ci-shared.yamlindex 2985ee80228..8207f92b267 100644--- a/.github/workflows/ci-shared.yaml+++ b/.github/workflows/ci-shared.yaml@@ -21,8 +21,6 @@ jobs:if: needs.changed-files-check.outputs.any_changed == 'true'timeout-minutes: 30runs-on: ubuntu-latest- env:- NX_REJECT_UNKNOWN_LOCAL_CACHE: 0strategy:matrix:task: [lint, typecheck, test]diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/RichTextV2FieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/RichTextV2FieldDisplay.tsxindex 0d3ea86b4dd..d2f60c06861 100644--- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/RichTextV2FieldDisplay.tsx+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/display/components/RichTextV2FieldDisplay.tsx@@ -1,13 +1,14 @@import { useRichTextV2FieldDisplay } from '@/object-record/record-field/ui/meta-types/hooks/useRichTextV2FieldDisplay';import { getFirstNonEmptyLineOfRichText } from '@/ui/input/editor/utils/getFirstNonEmptyLineOfRichText';import type { PartialBlock } from '@blocknote/core';+import { isNonEmptyString } from '@sniptt/guards';import { isDefined, parseJson } from 'twenty-shared/utils';export const RichTextV2FieldDisplay = () => {const { fieldValue } = useRichTextV2FieldDisplay();const blocks =- isDefined(fieldValue) && isDefined(fieldValue.blocknote)+ isDefined(fieldValue) && isNonEmptyString(fieldValue.blocknote)? parseJson<PartialBlock[]>(fieldValue.blocknote): null;diff --git a/packages/twenty-ui/tsconfig.dev.json b/packages/twenty-ui/tsconfig.dev.jsonindex 21cac2b7f26..54a9b125cd9 100644--- a/packages/twenty-ui/tsconfig.dev.json+++ b/packages/twenty-ui/tsconfig.dev.json@@ -1,9 +1,5 @@{"extends": "./tsconfig.json",- "compilerOptions": {- "module": "commonjs",- "types": ["jest", "node"]- },"include": ["jest.config.mjs","setupTests.ts",diff --git a/packages/twenty-ui/tsconfig.json b/packages/twenty-ui/tsconfig.jsonindex b36535dce55..616b6fd3dfa 100644--- a/packages/twenty-ui/tsconfig.json+++ b/packages/twenty-ui/tsconfig.json@@ -1,10 +1,12 @@{"extends": "../../tsconfig.base.json","compilerOptions": {+ "target": "ES2020","jsx": "react-jsx","allowJs": false,"allowSyntheticDefaultImports": true,"strict": true,+ "moduleResolution": "bundler","esModuleInterop": true,"noEmit": true,"types": ["node"],diff --git a/packages/twenty-ui/tsconfig.spec.json b/packages/twenty-ui/tsconfig.spec.jsonindex 926b2e3fda3..08d579b57b4 100644--- a/packages/twenty-ui/tsconfig.spec.json+++ b/packages/twenty-ui/tsconfig.spec.json@@ -1,13 +1,5 @@{"extends": "./tsconfig.json",- "compilerOptions": {- "module": "commonjs",- "types": ["jest", "node"],- "baseUrl": "../..",- "paths": {- "@ui/*": ["./packages/twenty-ui/src/*"]- }- },"include": ["jest.config.mjs","setupTests.ts",diff --git a/packages/twenty-ui/vite.config.ts b/packages/twenty-ui/vite.config.tsindex b9b4943ce83..a9dec809c2b 100644--- a/packages/twenty-ui/vite.config.ts+++ b/packages/twenty-ui/vite.config.ts@@ -4,7 +4,7 @@ import wyw from '@wyw-in-js/vite';import * as path from 'path';import { defineConfig } from 'vite';import checker from 'vite-plugin-checker';-import dts, { PluginOptions } from 'vite-plugin-dts';+import dts, { type PluginOptions } from 'vite-plugin-dts';import svgr from 'vite-plugin-svgr';import tsconfigPaths from 'vite-tsconfig-paths';