-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
ci(examples): test examples in CI #6813
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 383b9ff. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 383b9ff:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #6813 +/- ##
=======================================
Coverage 41.78% 41.78%
=======================================
Files 178 178
Lines 7017 7017
Branches 1421 1421
=======================================
Hits 2932 2932
Misses 3722 3722
Partials 363 363 ☔ View full report in Codecov by Sentry. |
The difference between examples and integrations was that examples depend on |
I agree that it's annoying to have longer CI times, but I believe there is benefit to ensuring examples can build and pass type checks - it adds confidence that the examples work for users out-of-the-box. This PR found and fixed several places where our examples didn't work. Luckily with Nx caching, the added time isn't too bad when the cache hits. I did forget that I had |
I'm fine with type checking the examples but building integrations separately seems better. The integrations aren't examples. You can't run them, they don't do anything meaningful. If all examples in the example directory show up automatically on the docs page, this would be highly confusing. It's also easier to get an overview of which frameworks in which version have coverage if those are in a separate directory |
That's a good point about being able to easily see the full list of covered frameworks. Since the vite and next builds were covered by examples directory, I thought it might be a small CI time gain to remove them. R.e. the website: examples need to be added to the docs config to show up in the sidebar, so the integrations moved to examples don't show up. |
I'm aware, this was just a hypothetical scenario where all things in the examples dir show up automatically :) the main points for separation are:
|
I've re-separated integrations in #6821 :) thanks for the feedback! |
--exclude=examples/**
fromtest:pr
andtest:ci
NX_CLOUD_AUTH_TOKEN
(alias ofNX_CLOUD_ACCESS_TOKEN
)