这是indexloc提供的服务,不要输入任何密码
Skip to content

ci: ensure turbo-types schemas are in sync #10609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/turborepo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,35 @@ jobs:
run: |
cargo check --workspace

turbo_types_check:
name: "@turbo/types codegen check"
needs:
- find-changes
if: ${{ needs.find-changes.outputs.rest == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Setup Node"
uses: ./.github/actions/setup-node

- name: Install Global Turbo
uses: ./.github/actions/install-global-turbo

- name: Build turbo-types schemas
run: |
turbo build --filter=@turbo/types

- name: Check for uncommitted changes
run: |
if ! git diff --exit-code; then
echo "::error::Generated schema files are out of sync with TypeScript types"
echo "::error::Please run 'turbo build --filter=@turbo/types' and commit the changes"
git diff
exit 1
fi

rust_test:
strategy:
fail-fast: false
Expand Down Expand Up @@ -384,6 +413,7 @@ jobs:
- integration
- rust_lint
- rust_check
- turbo_types_check
- rust_test
- basic-example
- kitchen-sink-example
Expand All @@ -410,6 +440,7 @@ jobs:
subjob ${{needs.integration.result}}
subjob ${{needs.rust_lint.result}}
subjob ${{needs.rust_check.result}}
subjob ${{needs.turbo_types_check.result}}
subjob ${{needs.rust_test.result}}
subjob ${{needs.basic-example.result}}
subjob ${{needs.kitchen-sink-example.result}}
Expand Down
Loading