mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 05:07:06 +08:00
test(infra): add check job to verify committed changes (#10829)
This commit is contained in:
@@ -138,6 +138,31 @@ jobs:
|
|||||||
rustup component add clippy
|
rustup component add clippy
|
||||||
cargo clippy --all-targets --all-features -- -D warnings
|
cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
|
||||||
|
check-git-status:
|
||||||
|
name: Check Git Status
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- optimize_ci
|
||||||
|
if: needs.optimize_ci.outputs.skip == 'false'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: ./.github/actions/setup-node
|
||||||
|
with:
|
||||||
|
full-cache: true
|
||||||
|
|
||||||
|
- name: Run Check
|
||||||
|
run: |
|
||||||
|
yarn affine init
|
||||||
|
yarn affine gql build
|
||||||
|
yarn affine i18n build
|
||||||
|
git status --porcelain | grep . && {
|
||||||
|
echo "Run 'yarn affine init && yarn affine gql build && yarn affine i18n build' and make sure all changes are submitted"
|
||||||
|
exit 1
|
||||||
|
} || {
|
||||||
|
echo "All changes are submitted"
|
||||||
|
}
|
||||||
|
|
||||||
check-yarn-binary:
|
check-yarn-binary:
|
||||||
name: Check yarn binary
|
name: Check yarn binary
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -915,6 +940,7 @@ jobs:
|
|||||||
- analyze
|
- analyze
|
||||||
- lint
|
- lint
|
||||||
- lint-rust
|
- lint-rust
|
||||||
|
- check-git-status
|
||||||
- check-yarn-binary
|
- check-yarn-binary
|
||||||
- e2e-test
|
- e2e-test
|
||||||
- e2e-legacy-blocksuite-test
|
- e2e-legacy-blocksuite-test
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ test-results
|
|||||||
**/*.gen.ts
|
**/*.gen.ts
|
||||||
**/*.gql
|
**/*.gql
|
||||||
**/*.d.ts
|
**/*.d.ts
|
||||||
|
packages/frontend/graphql/src/graphql/index.ts
|
||||||
|
|
||||||
# per files
|
# per files
|
||||||
tools/cli/src/webpack/error-handler.js
|
tools/cli/src/webpack/error-handler.js
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
"**/*.gen.ts",
|
"**/*.gen.ts",
|
||||||
"**/*.gql",
|
"**/*.gql",
|
||||||
"**/*.d.ts",
|
"**/*.d.ts",
|
||||||
|
"packages/frontend/graphql/src/graphql/index.ts",
|
||||||
"tools/cli/src/webpack/error-handler.js",
|
"tools/cli/src/webpack/error-handler.js",
|
||||||
"packages/backend/native/index.d.ts",
|
"packages/backend/native/index.d.ts",
|
||||||
"packages/backend/server/src/__tests__/__snapshots__",
|
"packages/backend/server/src/__tests__/__snapshots__",
|
||||||
|
|||||||
@@ -639,9 +639,7 @@ export const getCurrentUserQuery = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}`,
|
}`,
|
||||||
deprecations: [
|
deprecations: ["'token' is deprecated: use [/api/auth/sign-in?native=true] instead"],
|
||||||
"'token' is deprecated: use [/api/auth/sign-in?native=true] instead",
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getDocDefaultRoleQuery = {
|
export const getDocDefaultRoleQuery = {
|
||||||
@@ -893,10 +891,7 @@ export const getWorkspaceInfoQuery = {
|
|||||||
team
|
team
|
||||||
}
|
}
|
||||||
}`,
|
}`,
|
||||||
deprecations: [
|
deprecations: ["'isAdmin' is deprecated: use WorkspaceType[role] instead","'isOwner' is deprecated: use WorkspaceType[role] instead"],
|
||||||
"'isAdmin' is deprecated: use WorkspaceType[role] instead",
|
|
||||||
"'isOwner' is deprecated: use WorkspaceType[role] instead",
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getWorkspacePageByIdQuery = {
|
export const getWorkspacePageByIdQuery = {
|
||||||
@@ -1195,9 +1190,7 @@ export const quotaQuery = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}`,
|
}`,
|
||||||
deprecations: [
|
deprecations: ["'storageQuota' is deprecated: use `UserQuotaType['usedStorageQuota']` instead"],
|
||||||
"'storageQuota' is deprecated: use `UserQuotaType['usedStorageQuota']` instead",
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const readNotificationMutation = {
|
export const readNotificationMutation = {
|
||||||
@@ -1644,9 +1637,7 @@ export const getWorkspaceRolePermissionsQuery = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}`,
|
}`,
|
||||||
deprecations: [
|
deprecations: ["'workspaceRolePermissions' is deprecated: use WorkspaceType[permissions] instead"],
|
||||||
"'workspaceRolePermissions' is deprecated: use WorkspaceType[permissions] instead",
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const approveWorkspaceTeamMemberMutation = {
|
export const approveWorkspaceTeamMemberMutation = {
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ export interface CopilotContext {
|
|||||||
export interface CopilotContextMatchContextArgs {
|
export interface CopilotContextMatchContextArgs {
|
||||||
content: Scalars['String']['input'];
|
content: Scalars['String']['input'];
|
||||||
limit?: InputMaybe<Scalars['SafeInt']['input']>;
|
limit?: InputMaybe<Scalars['SafeInt']['input']>;
|
||||||
|
threshold?: InputMaybe<Scalars['Float']['input']>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CopilotContextMatchWorkspaceContextArgs {
|
export interface CopilotContextMatchWorkspaceContextArgs {
|
||||||
|
|||||||
@@ -7577,6 +7577,10 @@ export function useAFFiNEI18N(): {
|
|||||||
contextId: string;
|
contextId: string;
|
||||||
message: string;
|
message: string;
|
||||||
}>): string;
|
}>): string;
|
||||||
|
/**
|
||||||
|
* `Embedding feature not available, you may need to install pgvector extension to your database`
|
||||||
|
*/
|
||||||
|
["error.COPILOT_EMBEDDING_UNAVAILABLE"](): string;
|
||||||
/**
|
/**
|
||||||
* `You have exceeded your blob storage quota.`
|
* `You have exceeded your blob storage quota.`
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1863,6 +1863,7 @@
|
|||||||
"error.COPILOT_CONTEXT_FILE_NOT_SUPPORTED": "File {{fileName}} is not supported to use as context: {{message}}",
|
"error.COPILOT_CONTEXT_FILE_NOT_SUPPORTED": "File {{fileName}} is not supported to use as context: {{message}}",
|
||||||
"error.COPILOT_FAILED_TO_MODIFY_CONTEXT": "Failed to modify context {{contextId}}: {{message}}",
|
"error.COPILOT_FAILED_TO_MODIFY_CONTEXT": "Failed to modify context {{contextId}}: {{message}}",
|
||||||
"error.COPILOT_FAILED_TO_MATCH_CONTEXT": "Failed to match context {{contextId}} with \"%7B%7Bcontent%7D%7D\": {{message}}",
|
"error.COPILOT_FAILED_TO_MATCH_CONTEXT": "Failed to match context {{contextId}} with \"%7B%7Bcontent%7D%7D\": {{message}}",
|
||||||
|
"error.COPILOT_EMBEDDING_UNAVAILABLE": "Embedding feature not available, you may need to install pgvector extension to your database",
|
||||||
"error.BLOB_QUOTA_EXCEEDED": "You have exceeded your blob storage quota.",
|
"error.BLOB_QUOTA_EXCEEDED": "You have exceeded your blob storage quota.",
|
||||||
"error.MEMBER_QUOTA_EXCEEDED": "You have exceeded your workspace member quota.",
|
"error.MEMBER_QUOTA_EXCEEDED": "You have exceeded your workspace member quota.",
|
||||||
"error.COPILOT_QUOTA_EXCEEDED": "You have reached the limit of actions in this workspace, please upgrade your plan.",
|
"error.COPILOT_QUOTA_EXCEEDED": "You have reached the limit of actions in this workspace, please upgrade your plan.",
|
||||||
|
|||||||
Reference in New Issue
Block a user