test(infra): add check job to verify committed changes (#10829)

This commit is contained in:
fengmk2
2025-03-14 02:58:27 +00:00
parent e086fd2a43
commit 8880cef20b
7 changed files with 38 additions and 13 deletions
+26
View File
@@ -138,6 +138,31 @@ jobs:
rustup component add clippy
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:
name: Check yarn binary
runs-on: ubuntu-latest
@@ -915,6 +940,7 @@ jobs:
- analyze
- lint
- lint-rust
- check-git-status
- check-yarn-binary
- e2e-test
- e2e-legacy-blocksuite-test
+1
View File
@@ -24,6 +24,7 @@ test-results
**/*.gen.ts
**/*.gql
**/*.d.ts
packages/frontend/graphql/src/graphql/index.ts
# per files
tools/cli/src/webpack/error-handler.js
+1
View File
@@ -27,6 +27,7 @@
"**/*.gen.ts",
"**/*.gql",
"**/*.d.ts",
"packages/frontend/graphql/src/graphql/index.ts",
"tools/cli/src/webpack/error-handler.js",
"packages/backend/native/index.d.ts",
"packages/backend/server/src/__tests__/__snapshots__",
+4 -13
View File
@@ -639,9 +639,7 @@ export const getCurrentUserQuery = {
}
}
}`,
deprecations: [
"'token' is deprecated: use [/api/auth/sign-in?native=true] instead",
],
deprecations: ["'token' is deprecated: use [/api/auth/sign-in?native=true] instead"],
};
export const getDocDefaultRoleQuery = {
@@ -893,10 +891,7 @@ export const getWorkspaceInfoQuery = {
team
}
}`,
deprecations: [
"'isAdmin' is deprecated: use WorkspaceType[role] instead",
"'isOwner' is deprecated: use WorkspaceType[role] instead",
],
deprecations: ["'isAdmin' is deprecated: use WorkspaceType[role] instead","'isOwner' is deprecated: use WorkspaceType[role] instead"],
};
export const getWorkspacePageByIdQuery = {
@@ -1195,9 +1190,7 @@ export const quotaQuery = {
}
}
}`,
deprecations: [
"'storageQuota' is deprecated: use `UserQuotaType['usedStorageQuota']` instead",
],
deprecations: ["'storageQuota' is deprecated: use `UserQuotaType['usedStorageQuota']` instead"],
};
export const readNotificationMutation = {
@@ -1644,9 +1637,7 @@ export const getWorkspaceRolePermissionsQuery = {
}
}
}`,
deprecations: [
"'workspaceRolePermissions' is deprecated: use WorkspaceType[permissions] instead",
],
deprecations: ["'workspaceRolePermissions' is deprecated: use WorkspaceType[permissions] instead"],
};
export const approveWorkspaceTeamMemberMutation = {
+1
View File
@@ -155,6 +155,7 @@ export interface CopilotContext {
export interface CopilotContextMatchContextArgs {
content: Scalars['String']['input'];
limit?: InputMaybe<Scalars['SafeInt']['input']>;
threshold?: InputMaybe<Scalars['Float']['input']>;
}
export interface CopilotContextMatchWorkspaceContextArgs {
+4
View File
@@ -7577,6 +7577,10 @@ export function useAFFiNEI18N(): {
contextId: string;
message: 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.`
*/
@@ -1863,6 +1863,7 @@
"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_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.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.",