-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,036 changed files
with
22,159 additions
and
10,992 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,63 @@ | ||
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 |
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
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 |
---|---|---|
|
@@ -37,16 +37,12 @@ spec: | |
value: 3000 | ||
- name: SERVER_URL | ||
value: "https://crm.example.com:443" | ||
- name: FRONT_BASE_URL | ||
value: "https://crm.example.com:443" | ||
- name: "PG_DATABASE_URL" | ||
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 |
---|---|---|
|
@@ -28,11 +28,9 @@ spec: | |
env: | ||
- name: SERVER_URL | ||
value: "https://crm.example.com:443" | ||
- name: FRONT_BASE_URL | ||
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
Oops, something went wrong.