-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 8978-add-navigation-inside-the-command-menu-…
…for-showpage
- Loading branch information
Showing
253 changed files
with
4,357 additions
and
2,114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI demo check | ||
on: | ||
schedule: | ||
- cron: '30 7,19 * * *' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI Shared | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
shared-test: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
env: | ||
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 | ||
strategy: | ||
matrix: | ||
task: [lint, typecheck, test] | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
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-shared/** | ||
- 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: 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,10 +41,8 @@ spec: | |
value: "postgres://postgres:[email protected]/default" | ||
- name: "REDIS_URL" | ||
value: "redis://twentycrm-redis.twentycrm.svc.cluster.local:6379" | ||
- name: ENABLE_DB_MIGRATIONS | ||
value: "true" | ||
- name: SIGN_IN_PREFILLED | ||
value: "true" | ||
value: "false" | ||
- name: STORAGE_TYPE | ||
value: "local" | ||
- name: "MESSAGE_QUEUE_TYPE" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ spec: | |
value: "https://crm.example.com:443" | ||
- name: PG_DATABASE_URL | ||
value: "postgres://postgres:[email protected]/default" | ||
- name: ENABLE_DB_MIGRATIONS | ||
- name: DISABLE_DB_MIGRATIONS | ||
value: "false" # it already runs on the server | ||
- name: STORAGE_TYPE | ||
value: "local" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...wenty-e2e-testing/tests/companies.spec.ts → ...y-e2e-testing/tests/all/companies.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...enty-e2e-testing/tests/workspaces.spec.ts → ...-e2e-testing/tests/all/workspaces.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('Check if demo account is working properly @demo-only', async ({ | ||
page, | ||
}) => { | ||
await page.goto('https://demo.twenty.com/'); | ||
await page.getByRole('button', { name: 'Continue With Email' }).click(); | ||
await page.getByRole('button', { name: 'Continue', exact: true }).click(); | ||
await page.getByRole('button', { name: 'Sign in' }).click(); | ||
await expect(page.getByText('Welcome to Twenty')).not.toBeVisible(); | ||
await page.waitForTimeout(5000); | ||
await expect(page.getByText('Server’s on a coffee break')).not.toBeVisible({ | ||
timeout: 5000, | ||
}); | ||
}); |
Oops, something went wrong.