Add support for workflow_dispatch event #347
Draft
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.
Related to #240
This pull request adds unit tests for handling the
workflow_dispatch
event in GitHub Actions workflows.__tests__/common/github/workflow-event/workflow-event.test.ts
. The first test verifies that theworkflow_dispatch
event is correctly processed, ensuring the event name and payload are as expected. The second test checks that deployment creation is triggered forworkflow_dispatch
events, simulating the deployment creation logic and asserting that it is called with the event payload.workflow_dispatch
event, ensuring the tests run under the correct conditions.For more details, open the Copilot Workspace session.