improv(build): allow to specify PR number when running e2e tests #1079
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of your changes
As described in issue #1077, at the moment it's not possible to run e2e tests on branches that reside on a fork of the repo. This PR, with the changes that are described below, aims at supporting this mechanism so that maintainers can trigger an integration test on PRs coming from the community.
This PR adds an optional input field to the workflow that runs integration tests, now renamed "Run e2e tests for consistency:

The field is an integer that represents a PR number from this repository. When a value is provided, this value takes precedence over the branch name selected in the dropdown.
If a value is not supplied, the workflow will run the integration tests on the selected branch.
Below a diagram that shows the new flow:
Finally, I have removed from the workflow the step that runs unit tests since this will always be run either on
main
(where unit tests are run before and after merging), or on a PR which should be merged only when unit tests are successful.How to verify this change
Run the e2e tests on a PR coming from a fork once the workflow is merged.
Related issues, RFCs
Issue number: #1077
PR status
Is this ready for review?: YES
Is it a breaking change?: NO
Checklist
Breaking change checklist
N/A
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.