Skip to content

Commit b455e95

Browse files
committed
Merge branch 'main' into relation-card-fix
2 parents 43e34bb + aa27095 commit b455e95

File tree

2,008 files changed

+62665
-40233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,008 files changed

+62665
-40233
lines changed

.github/workflows/cd-deploy-main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- main
66
jobs:
77
deploy-main:
8+
timeout-minutes: 3
89
runs-on: ubuntu-latest
910
steps:
1011
- name: Repository Dispatch

.github/workflows/cd-deploy-tag.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- 'v*'
66
jobs:
77
deploy-tag:
8+
timeout-minutes: 3
89
runs-on: ubuntu-latest
910
steps:
1011
- name: Repository Dispatch

.github/workflows/ci-chrome-extension.yaml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@ on:
33
push:
44
branches:
55
- main
6-
paths:
7-
- 'package.json'
8-
- 'packages/twenty-chrome-extension/**'
6+
97
pull_request:
10-
paths:
11-
- 'package.json'
12-
- 'packages/twenty-chrome-extension/**'
8+
139
concurrency:
1410
group: ${{ github.workflow }}-${{ github.ref }}
1511
cancel-in-progress: true
1612

1713
jobs:
1814
chrome-extension-build:
15+
timeout-minutes: 15
1916
runs-on: ubuntu-latest
2017
env:
2118
VITE_SERVER_BASE_URL: http://localhost:3000
@@ -26,7 +23,25 @@ jobs:
2623
with:
2724
access_token: ${{ github.token }}
2825
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Check for changed files
30+
id: changed-files
31+
uses: tj-actions/changed-files@v11
32+
with:
33+
files: |
34+
package.json
35+
packages/twenty-chrome-extension/**
36+
2937
- name: Install dependencies
38+
if: steps.changed-files.outputs.any_changed == 'true'
3039
uses: ./.github/workflows/actions/yarn-install
3140
- name: Chrome Extension / Run build
41+
if: steps.changed-files.outputs.any_changed == 'true'
3242
run: npx nx build twenty-chrome-extension
43+
44+
- name: Mark as Valid if No Changes
45+
if: steps.changed-files.outputs.changed != 'true'
46+
run: |
47+
echo "No relevant changes detected. Marking as valid."

.github/workflows/ci-e2e.yml.bak

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI E2E Tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- '**'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
timeout-minutes: 30
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: lts/*
25+
26+
- name: Check for changed files
27+
id: changed-files
28+
uses: tj-actions/changed-files@v11
29+
with:
30+
files: |
31+
packages/**
32+
playwright.config.ts
33+
34+
- name: Skip if no relevant changes
35+
if: steps.changed-files.outputs.any_changed == 'false'
36+
run: echo "No relevant changes detected. Marking as valid."
37+
38+
- name: Install dependencies
39+
if: steps.changed-files.outputs.any_changed == 'true'
40+
uses: ./.github/workflows/actions/yarn-install
41+
- name: Install Playwright Browsers
42+
if: steps.changed-files.outputs.any_changed == 'true'
43+
run: yarn playwright install --with-deps
44+
- name: Run Playwright tests
45+
if: steps.changed-files.outputs.any_changed == 'true'
46+
run: yarn test:e2e companies
47+
- uses: actions/upload-artifact@v4
48+
if: always()
49+
with:
50+
name: playwright-report
51+
path: playwright-report/
52+
retention-days: 30

.github/workflows/ci-front.yaml

Lines changed: 97 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,16 @@ on:
33
push:
44
branches:
55
- main
6-
paths:
7-
- 'package.json'
8-
- 'packages/twenty-front/**'
9-
- 'packages/twenty-ui/**'
6+
107
pull_request:
11-
paths:
12-
- 'package.json'
13-
- 'packages/twenty-front/**'
14-
- 'packages/twenty-ui/**'
8+
159
concurrency:
1610
group: ${{ github.workflow }}-${{ github.ref }}
1711
cancel-in-progress: true
1812

1913
jobs:
2014
front-sb-build:
15+
timeout-minutes: 30
2116
runs-on: ubuntu-latest
2217
env:
2318
REACT_APP_SERVER_BASE_URL: http://localhost:3000
@@ -29,21 +24,43 @@ jobs:
2924
access_token: ${{ github.token }}
3025
- name: Fetch local actions
3126
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
30+
- name: Check for changed files
31+
id: changed-files
32+
uses: tj-actions/changed-files@v11
33+
with:
34+
files: |
35+
package.json
36+
packages/twenty-front/**
37+
packages/twenty-ui/**
38+
39+
- name: Skip if no relevant changes
40+
if: steps.changed-files.outputs.any_changed == 'false'
41+
run: echo "No relevant changes. Skipping CI."
42+
3243
- name: Install dependencies
44+
if: steps.changed-files.outputs.any_changed == 'true'
3345
uses: ./.github/workflows/actions/yarn-install
3446
- name: Diagnostic disk space issue
47+
if: steps.changed-files.outputs.any_changed == 'true'
3548
run: df -h
3649
- name: Front / Restore Storybook Task Cache
50+
if: steps.changed-files.outputs.any_changed == 'true'
3751
uses: ./.github/workflows/actions/task-cache
3852
with:
3953
tag: scope:frontend
4054
tasks: storybook:build
4155
- name: Front / Write .env
56+
if: steps.changed-files.outputs.any_changed == 'true'
4257
run: npx nx reset:env twenty-front
4358
- name: Front / Build storybook
59+
if: steps.changed-files.outputs.any_changed == 'true'
4460
run: npx nx storybook:build twenty-front
4561
front-sb-test:
46-
runs-on: ci-8-cores
62+
timeout-minutes: 30
63+
runs-on: shipfox-8vcpu-ubuntu-2204
4764
needs: front-sb-build
4865
strategy:
4966
matrix:
@@ -54,36 +71,72 @@ jobs:
5471
steps:
5572
- name: Fetch local actions
5673
uses: actions/checkout@v4
74+
with:
75+
fetch-depth: 0
76+
- name: Check for changed files
77+
id: changed-files
78+
uses: tj-actions/changed-files@v11
79+
with:
80+
files: |
81+
packages/twenty-front/**
82+
- name: Skip if no relevant changes
83+
if: steps.changed-files.outputs.any_changed == 'false'
84+
run: echo "No relevant changes. Skipping CI."
85+
5786
- name: Install dependencies
87+
if: steps.changed-files.outputs.any_changed == 'true'
5888
uses: ./.github/workflows/actions/yarn-install
5989
- name: Install Playwright
90+
if: steps.changed-files.outputs.any_changed == 'true'
6091
run: cd packages/twenty-front && npx playwright install
6192
- name: Front / Restore Storybook Task Cache
93+
if: steps.changed-files.outputs.any_changed == 'true'
6294
uses: ./.github/workflows/actions/task-cache
6395
with:
6496
tag: scope:frontend
6597
tasks: storybook:build
6698
- name: Front / Write .env
99+
if: steps.changed-files.outputs.any_changed == 'true'
67100
run: npx nx reset:env twenty-front
68101
- name: Run storybook tests
102+
if: steps.changed-files.outputs.any_changed == 'true'
69103
run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }}
70104
front-sb-test-performance:
71-
runs-on: ci-8-cores
105+
timeout-minutes: 30
106+
runs-on: shipfox-8vcpu-ubuntu-2204
72107
env:
73108
REACT_APP_SERVER_BASE_URL: http://localhost:3000
74109
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
75110
steps:
76111
- name: Fetch local actions
77112
uses: actions/checkout@v4
113+
with:
114+
fetch-depth: 0
115+
- name: Check for changed files
116+
id: changed-files
117+
uses: tj-actions/changed-files@v11
118+
with:
119+
files: |
120+
packages/twenty-front/**
121+
122+
- name: Skip if no relevant changes
123+
if: steps.changed-files.outputs.any_changed == 'false'
124+
run: echo "No relevant changes. Skipping CI."
125+
78126
- name: Install dependencies
127+
if: steps.changed-files.outputs.any_changed == 'true'
79128
uses: ./.github/workflows/actions/yarn-install
80129
- name: Install Playwright
130+
if: steps.changed-files.outputs.any_changed == 'true'
81131
run: cd packages/twenty-front && npx playwright install
82132
- name: Front / Write .env
133+
if: steps.changed-files.outputs.any_changed == 'true'
83134
run: npx nx reset:env twenty-front
84135
- name: Run storybook tests
85-
run: npx nx storybook:serve-and-test:static:performance twenty-front
136+
if: steps.changed-files.outputs.any_changed == 'true'
137+
run: npx nx run twenty-front:storybook:serve-and-test:static:performance
86138
front-chromatic-deployment:
139+
timeout-minutes: 30
87140
if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push'
88141
needs: front-sb-build
89142
runs-on: ubuntu-latest
@@ -95,21 +148,38 @@ jobs:
95148
- uses: actions/checkout@v4
96149
with:
97150
fetch-depth: 0
151+
152+
- name: Check for changed files
153+
id: changed-files
154+
uses: tj-actions/changed-files@v11
155+
with:
156+
files: |
157+
packages/twenty-front/**
158+
159+
- name: Skip if no relevant changes
160+
if: steps.changed-files.outputs.any_changed == 'false'
161+
run: echo "No relevant changes. Skipping CI."
162+
98163
- name: Install dependencies
164+
if: steps.changed-files.outputs.any_changed == 'true'
99165
uses: ./.github/workflows/actions/yarn-install
100166
- name: Front / Restore Storybook Task Cache
167+
if: steps.changed-files.outputs.any_changed == 'true'
101168
uses: ./.github/workflows/actions/task-cache
102169
with:
103170
tag: scope:frontend
104171
tasks: storybook:build
105172
- name: Front / Write .env
173+
if: steps.changed-files.outputs.any_changed == 'true'
106174
run: |
107175
cd packages/twenty-front
108176
touch .env
109177
echo "REACT_APP_SERVER_BASE_URL: $REACT_APP_SERVER_BASE_URL" >> .env
110178
- name: Publish to Chromatic
179+
if: steps.changed-files.outputs.any_changed == 'true'
111180
run: npx nx run twenty-front:chromatic:ci
112181
front-task:
182+
timeout-minutes: 30
113183
runs-on: ubuntu-latest
114184
env:
115185
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
@@ -125,20 +195,35 @@ jobs:
125195
uses: actions/checkout@v4
126196
with:
127197
fetch-depth: 0
198+
- name: Check for changed files
199+
id: changed-files
200+
uses: tj-actions/changed-files@v11
201+
with:
202+
files: |
203+
packages/twenty-front/**
204+
205+
- name: Skip if no relevant changes
206+
if: steps.changed-files.outputs.any_changed == 'false'
207+
run: echo "No relevant changes. Skipping CI."
208+
128209
- name: Install dependencies
210+
if: steps.changed-files.outputs.any_changed == 'true'
129211
uses: ./.github/workflows/actions/yarn-install
130212
- name: Front / Restore ${{ matrix.task }} task cache
213+
if: steps.changed-files.outputs.any_changed == 'true'
131214
uses: ./.github/workflows/actions/task-cache
132215
with:
133216
tag: scope:frontend
134217
tasks: ${{ matrix.task }}
135218
- name: Reset .env
219+
if: steps.changed-files.outputs.any_changed == 'true'
136220
uses: ./.github/workflows/actions/nx-affected
137221
with:
138222
tag: scope:frontend
139223
tasks: reset:env
140224
- name: Run ${{ matrix.task }} task
225+
if: steps.changed-files.outputs.any_changed == 'true'
141226
uses: ./.github/workflows/actions/nx-affected
142227
with:
143228
tag: scope:frontend
144-
tasks: ${{ matrix.task }}
229+
tasks: ${{ matrix.task }}

.github/workflows/ci-release-create.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
jobs:
1717
create_pr:
18+
timeout-minutes: 10
1819
runs-on: ubuntu-latest
1920
steps:
2021
- name: Checkout

.github/workflows/ci-release-merge.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
tag_and_release:
9+
timeout-minutes: 10
910
runs-on: ubuntu-latest
1011
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
1112
steps:

0 commit comments

Comments
 (0)