Skip to content

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

@vercel
Copy link
Contributor

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.

4 participants