mirror of
https://github.com/lingble/twenty.git
synced 2025-11-01 21:27:58 +00:00
6
.github/workflows/ci-front.yaml
vendored
6
.github/workflows/ci-front.yaml
vendored
@@ -21,6 +21,7 @@ jobs:
|
|||||||
runs-on: ci-8-cores
|
runs-on: ci-8-cores
|
||||||
env:
|
env:
|
||||||
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
||||||
|
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
uses: styfle/cancel-workflow-action@0.11.0
|
uses: styfle/cancel-workflow-action@0.11.0
|
||||||
@@ -47,6 +48,7 @@ jobs:
|
|||||||
storybook_scope: [pages, modules]
|
storybook_scope: [pages, modules]
|
||||||
env:
|
env:
|
||||||
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
||||||
|
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch local actions
|
- name: Fetch local actions
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -67,6 +69,7 @@ jobs:
|
|||||||
runs-on: ci-8-cores
|
runs-on: ci-8-cores
|
||||||
env:
|
env:
|
||||||
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
||||||
|
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch local actions
|
- name: Fetch local actions
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -85,6 +88,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000
|
REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000
|
||||||
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
||||||
|
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -105,6 +109,8 @@ jobs:
|
|||||||
run: npx nx run twenty-front:chromatic:ci
|
run: npx nx run twenty-front:chromatic:ci
|
||||||
front-task:
|
front-task:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
task: [lint, typecheck, test]
|
task: [lint, typecheck, test]
|
||||||
|
|||||||
2
.github/workflows/ci-server.yaml
vendored
2
.github/workflows/ci-server.yaml
vendored
@@ -19,6 +19,8 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
server-test:
|
server-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: twentycrm/twenty-postgres
|
image: twentycrm/twenty-postgres
|
||||||
|
|||||||
5
nx.json
5
nx.json
@@ -210,13 +210,12 @@
|
|||||||
"executor": "nx:run-commands",
|
"executor": "nx:run-commands",
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "{projectRoot}",
|
"cwd": "{projectRoot}",
|
||||||
"command": "cross-var chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --build-script-name={args.targetPackageJsonScript} --exit-zero-on-changes {args.ci}",
|
"command": "cross-var chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --build-script-name={args.targetPackageJsonScript} {args.ci}",
|
||||||
"ci": false,
|
|
||||||
"targetPackageJsonScript": "storybook:build:chromatic"
|
"targetPackageJsonScript": "storybook:build:chromatic"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"ci": {
|
"ci": {
|
||||||
"ci": true
|
"ci": "--exit-zero-on-changes"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,13 +12,13 @@ const computeStoriesGlob = () => {
|
|||||||
|
|
||||||
if (process.env.STORYBOOK_SCOPE === 'modules') {
|
if (process.env.STORYBOOK_SCOPE === 'modules') {
|
||||||
return [
|
return [
|
||||||
'../src/modules/**/*.stories.@(js|jsx|ts|tsx)',
|
'../src/modules/**/!(perf)/*.stories.@(js|jsx|ts|tsx)',
|
||||||
'../src/modules/**/*.docs.mdx',
|
'../src/modules/**/*.docs.mdx',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.STORYBOOK_SCOPE === 'performance') {
|
if (process.env.STORYBOOK_SCOPE === 'performance') {
|
||||||
return ['../src/modules/**/*.perf.stories.@(js|jsx|ts|tsx)'];
|
return ['../src/modules/**/perf/*.perf.stories.@(js|jsx|ts|tsx)'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.STORYBOOK_SCOPE === 'ui-docs') {
|
if (process.env.STORYBOOK_SCOPE === 'ui-docs') {
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ const StyledCommentBody = styled.div`
|
|||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
|
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user