From 5a9f78557415bc5af02275f8960f469e00dfd475 Mon Sep 17 00:00:00 2001 From: Kyle Galbraith Date: Thu, 24 Oct 2024 10:14:35 +0200 Subject: [PATCH 01/10] Update ci-front.yaml --- .github/workflows/ci-front.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index fa796e7e94a6..83f5d7b4346e 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -60,6 +60,7 @@ jobs: run: npx nx storybook:build twenty-front front-sb-test: runs-on: depot-ubuntu-latest-8 + name: sb-test-depot timeout-minutes: 60 needs: front-sb-build strategy: @@ -103,6 +104,7 @@ jobs: run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} front-sb-test-performance: runs-on: depot-ubuntu-latest-8 + name: sb-test-perf-depot timeout-minutes: 60 env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 From 1d0ccbdc4c65b6c5896b14667924c6f09f39d4c5 Mon Sep 17 00:00:00 2001 From: kylegalbraith Date: Thu, 24 Oct 2024 10:19:19 +0200 Subject: [PATCH 02/10] force run --- .github/workflows/ci-front.yaml | 34 +++------------------------------ 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 83f5d7b4346e..070dbecee5f9 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -3,10 +3,10 @@ on: push: branches: - main - + pull_request: workflow_dispatch: {} - + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -41,7 +41,7 @@ jobs: run: echo "No relevant changes. Skipping CI." - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' + if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/yarn-install - name: Diagnostic disk space issue if: steps.changed-files.outputs.any_changed == 'true' @@ -74,33 +74,19 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Check for changed files - id: changed-files - uses: tj-actions/changed-files@v11 - with: - files: | - packages/twenty-front/** - - name: Skip if no relevant changes - if: steps.changed-files.outputs.any_changed == 'false' - run: echo "No relevant changes. Skipping CI." - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/yarn-install - name: Install Playwright - if: steps.changed-files.outputs.any_changed == 'true' run: cd packages/twenty-front && npx playwright install - name: Front / Restore Storybook Task Cache - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/task-cache with: tag: scope:frontend tasks: storybook:build - name: Front / Write .env - if: steps.changed-files.outputs.any_changed == 'true' run: npx nx reset:env twenty-front - name: Run storybook tests - if: steps.changed-files.outputs.any_changed == 'true' run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} front-sb-test-performance: runs-on: depot-ubuntu-latest-8 @@ -114,28 +100,14 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Check for changed files - id: changed-files - uses: tj-actions/changed-files@v11 - with: - files: | - packages/twenty-front/** - - - name: Skip if no relevant changes - if: steps.changed-files.outputs.any_changed == 'false' - run: echo "No relevant changes. Skipping CI." - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/yarn-install - name: Install Playwright - if: steps.changed-files.outputs.any_changed == 'true' run: cd packages/twenty-front && npx playwright install - name: Front / Write .env - if: steps.changed-files.outputs.any_changed == 'true' run: npx nx reset:env twenty-front - name: Run storybook tests - if: steps.changed-files.outputs.any_changed == 'true' run: npx nx run twenty-front:storybook:serve-and-test:static:performance front-chromatic-deployment: if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push' From 3f1145aefd61efcbcc4b8f6fe42933d4a09eae16 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Thu, 24 Oct 2024 10:48:46 +0100 Subject: [PATCH 03/10] tmate gha --- .github/workflows/ci-front.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 070dbecee5f9..1f4d159ddfbd 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -89,9 +89,9 @@ jobs: - name: Run storybook tests run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} front-sb-test-performance: - runs-on: depot-ubuntu-latest-8 + runs-on: ubuntu-22.04 name: sb-test-perf-depot - timeout-minutes: 60 + # timeout-minutes: 60 env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 @@ -107,6 +107,9 @@ jobs: run: cd packages/twenty-front && npx playwright install - name: Front / Write .env run: npx nx reset:env twenty-front + - uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false - name: Run storybook tests run: npx nx run twenty-front:storybook:serve-and-test:static:performance front-chromatic-deployment: From 375793fec54ffa4db42429a662e30b397243b937 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Thu, 24 Oct 2024 11:00:47 +0100 Subject: [PATCH 04/10] Remove concurrency --- .github/workflows/ci-front.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 1f4d159ddfbd..d948962becdc 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -7,10 +7,6 @@ on: pull_request: workflow_dispatch: {} -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - jobs: front-sb-build: runs-on: ubuntu-latest From 7de6e294caa0ecf042c60ebdabaeb24fc3ad8921 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Thu, 24 Oct 2024 11:13:48 +0100 Subject: [PATCH 05/10] Depot tmate --- .github/workflows/ci-front.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index d948962becdc..c02cc47b8550 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -85,7 +85,7 @@ jobs: - name: Run storybook tests run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} front-sb-test-performance: - runs-on: ubuntu-22.04 + runs-on: depot-ubuntu-latest-8 name: sb-test-perf-depot # timeout-minutes: 60 env: From 2d92c7f3a13567bb80b7997f4f67e28d59348981 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Thu, 24 Oct 2024 11:15:46 +0100 Subject: [PATCH 06/10] gha tmate --- .github/workflows/ci-front.yaml | 169 +------------------------------- 1 file changed, 2 insertions(+), 167 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index c02cc47b8550..5af825dff04b 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -8,84 +8,8 @@ on: workflow_dispatch: {} jobs: - front-sb-build: - runs-on: ubuntu-latest - env: - REACT_APP_SERVER_BASE_URL: http://localhost:3000 - NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - - name: Fetch local actions - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check for changed files - id: changed-files - uses: tj-actions/changed-files@v11 - with: - files: | - package.json - packages/twenty-front/** - packages/twenty-ui/** - - - name: Skip if no relevant changes - if: steps.changed-files.outputs.any_changed == 'false' - run: echo "No relevant changes. Skipping CI." - - - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' - uses: ./.github/workflows/actions/yarn-install - - name: Diagnostic disk space issue - if: steps.changed-files.outputs.any_changed == 'true' - run: df -h - - name: Front / Restore Storybook Task Cache - if: steps.changed-files.outputs.any_changed == 'true' - uses: ./.github/workflows/actions/task-cache - with: - tag: scope:frontend - tasks: storybook:build - - name: Front / Write .env - if: steps.changed-files.outputs.any_changed == 'true' - run: npx nx reset:env twenty-front - - name: Front / Build storybook - if: steps.changed-files.outputs.any_changed == 'true' - run: npx nx storybook:build twenty-front - front-sb-test: - runs-on: depot-ubuntu-latest-8 - name: sb-test-depot - timeout-minutes: 60 - needs: front-sb-build - strategy: - matrix: - storybook_scope: [pages, modules] - env: - REACT_APP_SERVER_BASE_URL: http://localhost:3000 - NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 - steps: - - name: Fetch local actions - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Install dependencies - uses: ./.github/workflows/actions/yarn-install - - name: Install Playwright - run: cd packages/twenty-front && npx playwright install - - name: Front / Restore Storybook Task Cache - uses: ./.github/workflows/actions/task-cache - with: - tag: scope:frontend - tasks: storybook:build - - name: Front / Write .env - run: npx nx reset:env twenty-front - - name: Run storybook tests - run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} front-sb-test-performance: - runs-on: depot-ubuntu-latest-8 + runs-on: ubuntu-22.04 name: sb-test-perf-depot # timeout-minutes: 60 env: @@ -108,93 +32,4 @@ jobs: limit-access-to-actor: false - name: Run storybook tests run: npx nx run twenty-front:storybook:serve-and-test:static:performance - front-chromatic-deployment: - if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push' - needs: front-sb-build - runs-on: ubuntu-latest - env: - REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000 - CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check for changed files - id: changed-files - uses: tj-actions/changed-files@v11 - with: - files: | - packages/twenty-front/** - - - name: Skip if no relevant changes - if: steps.changed-files.outputs.any_changed == 'false' - run: echo "No relevant changes. Skipping CI." - - - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' - uses: ./.github/workflows/actions/yarn-install - - name: Front / Restore Storybook Task Cache - if: steps.changed-files.outputs.any_changed == 'true' - uses: ./.github/workflows/actions/task-cache - with: - tag: scope:frontend - tasks: storybook:build - - name: Front / Write .env - if: steps.changed-files.outputs.any_changed == 'true' - run: | - cd packages/twenty-front - touch .env - echo "REACT_APP_SERVER_BASE_URL: $REACT_APP_SERVER_BASE_URL" >> .env - - name: Publish to Chromatic - if: steps.changed-files.outputs.any_changed == 'true' - run: npx nx run twenty-front:chromatic:ci - front-task: - runs-on: ubuntu-latest - env: - NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 - strategy: - matrix: - task: [lint, typecheck, test] - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - - name: Fetch custom Github Actions and base branch history - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Check for changed files - id: changed-files - uses: tj-actions/changed-files@v11 - with: - files: | - packages/twenty-front/** - - - name: Skip if no relevant changes - if: steps.changed-files.outputs.any_changed == 'false' - run: echo "No relevant changes. Skipping CI." - - - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' - uses: ./.github/workflows/actions/yarn-install - - name: Front / Restore ${{ matrix.task }} task cache - if: steps.changed-files.outputs.any_changed == 'true' - uses: ./.github/workflows/actions/task-cache - with: - tag: scope:frontend - tasks: ${{ matrix.task }} - - name: Reset .env - if: steps.changed-files.outputs.any_changed == 'true' - uses: ./.github/workflows/actions/nx-affected - with: - tag: scope:frontend - tasks: reset:env - - name: Run ${{ matrix.task }} task - if: steps.changed-files.outputs.any_changed == 'true' - uses: ./.github/workflows/actions/nx-affected - with: - tag: scope:frontend - tasks: ${{ matrix.task }} + From 3ab42723ff02f239293e448ceca321b52d0380ad Mon Sep 17 00:00:00 2001 From: kylegalbraith Date: Mon, 28 Oct 2024 11:13:39 +0100 Subject: [PATCH 07/10] bump --- .github/workflows/ci-front.yaml | 1 - README.md | 42 +++++++++++++++++++-------------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 5af825dff04b..a624c3b0bd28 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -32,4 +32,3 @@ jobs: limit-access-to-actor: false - name: Run storybook tests run: npx nx run twenty-front:storybook:serve-and-test:static:performance - diff --git a/README.md b/README.md index d930bf720336..bb8bbc6cc7f5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -bump +bump2

@@ -37,11 +37,11 @@ bump We’ve spent thousands of hours grappling with traditional CRMs like Pipedrive and Salesforce to align them with our business needs, only to end up frustrated — customizations are complex and the closed ecosystems of these platforms can feel restrictive. -We felt the need for a CRM platform that empowers rather than constrains. We believe the next great CRM will come from the open-source community. We’ve packed Twenty with powerful features to give you full control and help you run your business efficiently. +We felt the need for a CRM platform that empowers rather than constrains. We believe the next great CRM will come from the open-source community. We’ve packed Twenty with powerful features to give you full control and help you run your business efficiently.
-# Demo +# Demo Go to
demo.twenty.com and login with the following credentials: ``` @@ -49,9 +49,9 @@ email: tim@apple.dev password: Applecar2025 ``` -See also: -🚀 [Self-hosting](https://twenty.com/developers/section/self-hosting) -🖥️ [Local Setup](https://twenty.com/developers/local-setup) +See also: +🚀 [Self-hosting](https://twenty.com/developers/section/self-hosting) +🖥️ [Local Setup](https://twenty.com/developers/local-setup) # Why Choose Twenty? We understand that the CRM landscape is vast. So why should you choose us? @@ -67,17 +67,25 @@ We understand that the CRM landscape is vast. So why should you choose us?
# What You Can Do With Twenty -We're currently in the development phase of Twenty's alpha version. +We're currently in the development phase of Twenty's alpha version. -Please feel free to flag any specific need you have need by creating an issue. +Please feel free to flag any specific need you have need by creating an issue. Below are some features we have implemented to date: -+ [Add, filter, sort, edit, and track customers](#add-filter-sort-edit-and-track-customers) -+ [Create one or several opportunities for each company](#create-one-or-several-opportunities-for-each-company) -+ [See rich notes tasks displayed in a timeline](#see-rich-notes-tasks-displayed-in-a-timeline) -+ [Create tasks on records](#create-tasks-on-records) -+ [Navigate quickly through the app using keyboard shortcuts and search](#navigate-quickly-through-the-app-using-keyboard-shortcuts-and-search) +- [Demo](#demo) +- [Why Choose Twenty?](#why-choose-twenty) +- [What You Can Do With Twenty](#what-you-can-do-with-twenty) + - [Add, filter, sort, edit, and track customers:](#add-filter-sort-edit-and-track-customers) + - [Create one or several opportunities for each company:](#create-one-or-several-opportunities-for-each-company) + - [Track deals effortlessly with the email integration:](#track-deals-effortlessly-with-the-email-integration) + - [Tailor your data model to meet business needs:](#tailor-your-data-model-to-meet-business-needs) + - [See rich notes displayed in a timeline:](#see-rich-notes-displayed-in-a-timeline) + - [Create tasks on records](#create-tasks-on-records) + - [Navigate quickly through the app using keyboard shortcuts and search:](#navigate-quickly-through-the-app-using-keyboard-shortcuts-and-search) + - [Connect your CRM to all your tools through our APIs and Webhooks.](#connect-your-crm-to-all-your-tools-through-our-apis-and-webhooks) +- [What's In Store](#whats-in-store) +- [Join the Community](#join-the-community) ## Add, filter, sort, edit, and track customers: @@ -175,9 +183,7 @@ Here’s what you can look forward to: # Join the Community - Star the repo -- Join [discussions](https://github.com/twentyhq/twenty/discussions) and track [issues](https://github.com/twentyhq/twenty/issues) -- Follow us on [Twitter](https://twitter.com/twentycrm) or [LinkedIn](https://www.linkedin.com/company/twenty/) +- Join [discussions](https://github.com/twentyhq/twenty/discussions) and track [issues](https://github.com/twentyhq/twenty/issues) +- Follow us on [Twitter](https://twitter.com/twentycrm) or [LinkedIn](https://www.linkedin.com/company/twenty/) - Join our [Discord](https://discord.gg/cx5n4Jzs57) -- [Contributions](https://github.com/twentyhq/twenty/contribute) are, of course, most welcome! - - +- [Contributions](https://github.com/twentyhq/twenty/contribute) are, of course, most welcome! From 47798a2f636d26c0a4ca058a1defa6e737a3495a Mon Sep 17 00:00:00 2001 From: kylegalbraith Date: Mon, 28 Oct 2024 11:16:57 +0100 Subject: [PATCH 08/10] revert tmate --- .github/workflows/ci-front.yaml | 177 +++++++++++++++++++++++++++++++- 1 file changed, 172 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index a624c3b0bd28..070dbecee5f9 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -7,11 +7,91 @@ on: pull_request: workflow_dispatch: {} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: + front-sb-build: + runs-on: ubuntu-latest + env: + REACT_APP_SERVER_BASE_URL: http://localhost:3000 + NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} + - name: Fetch local actions + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Check for changed files + id: changed-files + uses: tj-actions/changed-files@v11 + with: + files: | + package.json + packages/twenty-front/** + packages/twenty-ui/** + + - name: Skip if no relevant changes + if: steps.changed-files.outputs.any_changed == 'false' + run: echo "No relevant changes. Skipping CI." + + - name: Install dependencies + if: steps.changed-files.outputs.any_changed == 'true' + uses: ./.github/workflows/actions/yarn-install + - name: Diagnostic disk space issue + if: steps.changed-files.outputs.any_changed == 'true' + run: df -h + - name: Front / Restore Storybook Task Cache + if: steps.changed-files.outputs.any_changed == 'true' + uses: ./.github/workflows/actions/task-cache + with: + tag: scope:frontend + tasks: storybook:build + - name: Front / Write .env + if: steps.changed-files.outputs.any_changed == 'true' + run: npx nx reset:env twenty-front + - name: Front / Build storybook + if: steps.changed-files.outputs.any_changed == 'true' + run: npx nx storybook:build twenty-front + front-sb-test: + runs-on: depot-ubuntu-latest-8 + name: sb-test-depot + timeout-minutes: 60 + needs: front-sb-build + strategy: + matrix: + storybook_scope: [pages, modules] + env: + REACT_APP_SERVER_BASE_URL: http://localhost:3000 + NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 + steps: + - name: Fetch local actions + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install dependencies + uses: ./.github/workflows/actions/yarn-install + - name: Install Playwright + run: cd packages/twenty-front && npx playwright install + - name: Front / Restore Storybook Task Cache + uses: ./.github/workflows/actions/task-cache + with: + tag: scope:frontend + tasks: storybook:build + - name: Front / Write .env + run: npx nx reset:env twenty-front + - name: Run storybook tests + run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} front-sb-test-performance: - runs-on: ubuntu-22.04 + runs-on: depot-ubuntu-latest-8 name: sb-test-perf-depot - # timeout-minutes: 60 + timeout-minutes: 60 env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 @@ -27,8 +107,95 @@ jobs: run: cd packages/twenty-front && npx playwright install - name: Front / Write .env run: npx nx reset:env twenty-front - - uses: mxschmitt/action-tmate@v3 - with: - limit-access-to-actor: false - name: Run storybook tests run: npx nx run twenty-front:storybook:serve-and-test:static:performance + front-chromatic-deployment: + if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push' + needs: front-sb-build + runs-on: ubuntu-latest + env: + REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000 + CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Check for changed files + id: changed-files + uses: tj-actions/changed-files@v11 + with: + files: | + packages/twenty-front/** + + - name: Skip if no relevant changes + if: steps.changed-files.outputs.any_changed == 'false' + run: echo "No relevant changes. Skipping CI." + + - name: Install dependencies + if: steps.changed-files.outputs.any_changed == 'true' + uses: ./.github/workflows/actions/yarn-install + - name: Front / Restore Storybook Task Cache + if: steps.changed-files.outputs.any_changed == 'true' + uses: ./.github/workflows/actions/task-cache + with: + tag: scope:frontend + tasks: storybook:build + - name: Front / Write .env + if: steps.changed-files.outputs.any_changed == 'true' + run: | + cd packages/twenty-front + touch .env + echo "REACT_APP_SERVER_BASE_URL: $REACT_APP_SERVER_BASE_URL" >> .env + - name: Publish to Chromatic + if: steps.changed-files.outputs.any_changed == 'true' + run: npx nx run twenty-front:chromatic:ci + front-task: + runs-on: ubuntu-latest + env: + NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 + strategy: + matrix: + task: [lint, typecheck, test] + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} + - name: Fetch custom Github Actions and base branch history + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Check for changed files + id: changed-files + uses: tj-actions/changed-files@v11 + with: + files: | + packages/twenty-front/** + + - name: Skip if no relevant changes + if: steps.changed-files.outputs.any_changed == 'false' + run: echo "No relevant changes. Skipping CI." + + - name: Install dependencies + if: steps.changed-files.outputs.any_changed == 'true' + uses: ./.github/workflows/actions/yarn-install + - name: Front / Restore ${{ matrix.task }} task cache + if: steps.changed-files.outputs.any_changed == 'true' + uses: ./.github/workflows/actions/task-cache + with: + tag: scope:frontend + tasks: ${{ matrix.task }} + - name: Reset .env + if: steps.changed-files.outputs.any_changed == 'true' + uses: ./.github/workflows/actions/nx-affected + with: + tag: scope:frontend + tasks: reset:env + - name: Run ${{ matrix.task }} task + if: steps.changed-files.outputs.any_changed == 'true' + uses: ./.github/workflows/actions/nx-affected + with: + tag: scope:frontend + tasks: ${{ matrix.task }} From 745ae99fb26afd7b425be361fb162f52daddfaf2 Mon Sep 17 00:00:00 2001 From: kylegalbraith Date: Mon, 28 Oct 2024 11:21:15 +0100 Subject: [PATCH 09/10] all run --- .github/workflows/ci-front.yaml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 070dbecee5f9..19272d67f41b 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -36,27 +36,18 @@ jobs: packages/twenty-front/** packages/twenty-ui/** - - name: Skip if no relevant changes - if: steps.changed-files.outputs.any_changed == 'false' - run: echo "No relevant changes. Skipping CI." - - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/yarn-install - name: Diagnostic disk space issue - if: steps.changed-files.outputs.any_changed == 'true' run: df -h - name: Front / Restore Storybook Task Cache - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/task-cache with: tag: scope:frontend tasks: storybook:build - name: Front / Write .env - if: steps.changed-files.outputs.any_changed == 'true' run: npx nx reset:env twenty-front - name: Front / Build storybook - if: steps.changed-files.outputs.any_changed == 'true' run: npx nx storybook:build twenty-front front-sb-test: runs-on: depot-ubuntu-latest-8 @@ -129,27 +120,19 @@ jobs: files: | packages/twenty-front/** - - name: Skip if no relevant changes - if: steps.changed-files.outputs.any_changed == 'false' - run: echo "No relevant changes. Skipping CI." - - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/yarn-install - name: Front / Restore Storybook Task Cache - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/task-cache with: tag: scope:frontend tasks: storybook:build - name: Front / Write .env - if: steps.changed-files.outputs.any_changed == 'true' run: | cd packages/twenty-front touch .env echo "REACT_APP_SERVER_BASE_URL: $REACT_APP_SERVER_BASE_URL" >> .env - name: Publish to Chromatic - if: steps.changed-files.outputs.any_changed == 'true' run: npx nx run twenty-front:chromatic:ci front-task: runs-on: ubuntu-latest @@ -174,27 +157,19 @@ jobs: files: | packages/twenty-front/** - - name: Skip if no relevant changes - if: steps.changed-files.outputs.any_changed == 'false' - run: echo "No relevant changes. Skipping CI." - - name: Install dependencies - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/yarn-install - name: Front / Restore ${{ matrix.task }} task cache - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/task-cache with: tag: scope:frontend tasks: ${{ matrix.task }} - name: Reset .env - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/nx-affected with: tag: scope:frontend tasks: reset:env - name: Run ${{ matrix.task }} task - if: steps.changed-files.outputs.any_changed == 'true' uses: ./.github/workflows/actions/nx-affected with: tag: scope:frontend From 7dcb8ff25a5d06d18dc9200857f84eb93f44b2cb Mon Sep 17 00:00:00 2001 From: kylegalbraith Date: Mon, 28 Oct 2024 11:35:57 +0100 Subject: [PATCH 10/10] all on depot --- .github/workflows/ci-front.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 19272d67f41b..8e0b37bdc71e 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -13,7 +13,7 @@ concurrency: jobs: front-sb-build: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 @@ -101,9 +101,8 @@ jobs: - name: Run storybook tests run: npx nx run twenty-front:storybook:serve-and-test:static:performance front-chromatic-deployment: - if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push' needs: front-sb-build - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest env: REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000 CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} @@ -135,7 +134,7 @@ jobs: - name: Publish to Chromatic run: npx nx run twenty-front:chromatic:ci front-task: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest env: NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 strategy: