Add matrix for pull request and fix provision playbook reference in test workflows #136
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
The purpose of this PR is to fix various bugs found in the installation assistant's test workflows.
Firstly, Ubuntu 22 has been added to the
Test_installation_assistant
matrix as a system, ensuring it functions correctly on pull requests, and the condition in theTest_installation_assistant_distributed
matrix has also been fixed.Additionally, the environment variable
WAZUH_INSTALLATION_ASSISTANT_REFERENCE
has been added so that if a pull request triggers the workflow, it uses the branch that activated it (github.head_ref
) as a reference. If triggered manually, it will use the corresponding input (WAZUH_INSTALLATION_ASSISTANT_REFERENCE
).Lastly, some of the variables used in the workflow, like
VERBOSITY
andAUTOMATION_REFERENCE
, were only set when the workflow was triggered manually. This caused the steps that required these variables to fail when the workflow was run via a pull request. This has been resolved by adding environment variables with the same names and setting the correct values based on how the workflow was triggered.Testing
Manually executed workflows
Pull Request executed workflows
Related issue