Skip to content
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

ci: split examples tests #9729

Merged
merged 51 commits into from
Jan 21, 2025
Merged

ci: split examples tests #9729

merged 51 commits into from
Jan 21, 2025

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Jan 20, 2025

Description

Currently, our examples testing loop is too slow. Changing just one of the examples causes all of them to miss cache.

This PR instead runs tests only for changed examples. This is going to end up being an even larger improvement given that I've additionally set up a test for each package manager for each core-maintained example, effectively tripling the amount of testing needed.

Notes

This probably isn't the most elegant way to write this - but it was the easiest to understand. GitHub Actions is just...really hard to work with and my patience has run out. Maybe I'll clean this up later, or maybe some kind soul will review me and give me a quick way to DRY it up.

  • The additions in .github/workflows are all duplicates of each other, but one for each example.
  • The additions in turborepo-tests/example-* are creating tests for all of our supported package managers where we used to only test one package manager per example.

Testing Instructions

CI

Copy link

vercel bot commented Jan 20, 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 21, 2025 7:09pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:09pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:09pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:09pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:09pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:09pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:09pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:09pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:09pm

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

Successfully merging this pull request may close these issues.

3 participants