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

Add/secondary module inputs #2

Merged
merged 7 commits into from
Mar 18, 2024
Merged

Conversation

circlecube
Copy link
Member

Adds a feature to also update a secondary module before running tests.

New inputs: secondary-module-repo & secondary-module-branch

Engineers must take care to pass in an existing branch. If the module-repo or module-branch do not exist, (or if the current branch is sent) the checkout command will fail.

An idea for future improvement would be to also allow a tag/version of the secondary module, so we can easily test a released module that has not yet arrived in the plugin. For now, we'll have to rely on the plugin-branch input (it defaults to main but any could be used). In this scenario, the engineer would need to first create a branch on the plugin, update the secondary module in question on that branch, and then pass it in as the plugin-branch value.

See the test PR on coming-soon module which shows that this functionality works as expected: newfold-labs/wp-module-coming-soon#29

@circlecube circlecube requested a review from wpscholar January 29, 2024 20:18
@circlecube circlecube self-assigned this Jan 29, 2024
Copy link
Member

@wpscholar wpscholar left a comment

Choose a reason for hiding this comment

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

@circlecube This PR looks good, but needs to be synced with the main branch.

@circlecube circlecube merged commit c464dd8 into main Mar 18, 2024
2 checks passed
@circlecube circlecube deleted the add/secondary-module-inputs branch March 18, 2024 21:22
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