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

Trigger turborepo tests in CI correctly #4717

Merged
merged 2 commits into from
Apr 26, 2023
Merged

Trigger turborepo tests in CI correctly #4717

merged 2 commits into from
Apr 26, 2023

Conversation

mehulkar
Copy link
Contributor

  • integration tests when integration tests change or any turborepo src changes
  • e2e tests when e2e tests or any turborepo src changes
  • change ids so they're more clear about which file changes matter when

- integration tests when integration tests change or any turborepo src changes
- e2e tests when e2e tests or any turborepo src changes
- change ids so they're more clear about which file changes matter when
@vercel
Copy link

vercel bot commented Apr 26, 2023

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

Name Status Preview Comments Updated (UTC)
examples-basic-web 🔄 Building (Inspect) Apr 26, 2023 9:18pm
examples-gatsby-web 🔄 Building (Inspect) Apr 26, 2023 9:18pm
9 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Apr 26, 2023 9:18pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Apr 26, 2023 9:18pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Apr 26, 2023 9:18pm
examples-native-web ⬜️ Ignored (Inspect) Apr 26, 2023 9:18pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Apr 26, 2023 9:18pm
examples-svelte-web ⬜️ Ignored (Inspect) Apr 26, 2023 9:18pm
examples-tailwind-web ⬜️ Ignored (Inspect) Apr 26, 2023 9:18pm
examples-vite-web ⬜️ Ignored (Inspect) Apr 26, 2023 9:18pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Apr 26, 2023 9:18pm

cli/**
crates/turborepo*
crates/turborepo*/**
crates/turbo-updater
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These crates patterns were incomplete, so I'm using the existing turborepo_rust definition above to determine when to run integration and e2e tests

go_e2e: ${{ steps.ci.outputs.diff != '' || steps.go.outputs.diff != '' || steps.go_e2e.outputs.diff != '' }}
go: ${{ steps.ci.outputs.diff != '' || steps.turborepo_go.outputs.diff != '' }}
go_e2e: ${{ steps.ci.outputs.diff != '' || steps.turborepo_go.outputs.diff != '' || steps.turborepo_rust.outputs.diff != '' || steps.turborepo_e2e.outputs.diff != '' }}
go_integration: ${{ steps.ci.outputs.diff != '' || steps.turborepo_go.outputs.diff != '' || steps.turborepo_rust.outputs.diff != '' || steps.turborepo_integration.outputs.diff != '' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

e2e and integration tests now depend on all go and rust code, and also their respective test workspaces

@github-actions
Copy link
Contributor

✅ This change can build next-swc

@mehulkar mehulkar requested review from gsoltis, chris-olszewski and NicholasLYang and removed request for nathanhammond and arlyon April 26, 2023 21:33
@mehulkar
Copy link
Contributor Author

The Integration tests failed here because this branch is not rebased after #4712 was merged. Since the tests or the source themselves haven't changed here, I'm going to merge as-is

@mehulkar mehulkar merged commit c463f84 into main Apr 26, 2023
@mehulkar mehulkar deleted the mk/ci-test-triggers branch April 26, 2023 22:21
@github-actions
Copy link
Contributor

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Go integration tests
  • Turbopack Release Build

See workflow summary for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants