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

Selectively run Tuist Generation when there are changes to the Tuist configuration #103

Conversation

Iron-Ham
Copy link
Contributor

@Iron-Ham Iron-Ham commented Oct 25, 2023

The purpose of this pull request is to speed up CI & to save y'all some actions runner minutes.

Running Tuist generate as a step testing the validity of the project shouldn't be necessary if there have been no changes to the configuration. To verify proper function: I will branch off of this PR with a change to Tuist. This pull request, having no changes to the configuration shouldn't run the action. The other, with changes to the configuration, should run the action.

cc: @BobaFetters, since you have the most context on the configuration: Is the filter I've setup sufficient?

Edit: See #104 for an example of a pull request that triggers running Run Tuist Generation.

EDIT2: I see that the broader matrix for testing this is reliant on the Tuist generate step. 🤔 Another thought would be to selectively filter & run tests based on the filter. I'll give it some more thought.

@Iron-Ham
Copy link
Contributor Author

Simple follow-up has been placed into #80 (I don't mind removing it, but unfortunately since I don't have access to the apollographql/ repo, I cannot point a pull request to #80 as its base).

The follow up is basically: Only run the pagination tests when there are changes that could impact Pagination. Namely: If there are changes in Pagination, its tests, or apollo-ios.

@Iron-Ham Iron-Ham closed this Oct 25, 2023
@BobaFetters
Copy link
Member

@Iron-Ham Thanks for looking into/adding this! We had talked about maybe trying to filter selectively based on changes in apollo-ios or apollo-ios-codegen etc, looks like what you are doing with pagination would work great across the board.

@Iron-Ham
Copy link
Contributor Author

Iron-Ham commented Oct 25, 2023

Assuming i can get it to play nice with the matrix, it'd be a decent jumping off point.

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

Successfully merging this pull request may close these issues.

2 participants