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

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