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

ci: add check-types task to examples testing #9824

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 19 commits into from
Jan 29, 2025
Merged

ci: add check-types task to examples testing #9824

merged 19 commits into from
Jan 29, 2025

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Jan 27, 2025

Description

In the interest of keeping the examples robust, let's also run the newly added check-types task in CI to ensure those stay in the green when people try them out for the first time, too.

Doing this uncovered some issues with existing examples, so glad to see that this will get us to a more stable place!

A notable exception, unfortunately, is going to be the check-types in with-svelte. Svelte appears to be doing some type generation that can interrupt the type-checking process and make it flake out.

Testing Instructions

CI

@anthonyshew anthonyshew requested a review from a team as a code owner January 27, 2025 20:45
Copy link

vercel bot commented Jan 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 5:30am

# and it's reasonable to assume that they will continue to do so
turbo_command="turbo build lint --continue --output-logs=errors-only"
# with-svelte is flaky when building and check types at the same time, because the build process of Svelte involves type generation
# If the types are generating while the type checking happens, it can cause flakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this indicate that we should have "check-types": {"dependsOn": ["build"]} for the Svelte example to make sure that type generation completes before we try to check them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: examples Improvements or additions to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants