-
Notifications
You must be signed in to change notification settings - Fork 2
Added optional elastic search #51
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds optional Elasticsearch support to the Codeception test workflow by introducing a conditional flag. The service can now be enabled only when needed, avoiding unnecessary resource allocation in test environments that don't require Elasticsearch.
Key Changes:
- Added
ENABLE_ELASTICSEARCHboolean input (defaults to false) - Replaced commented-out Elasticsearch configuration with conditional service that uses a dummy bash container when disabled
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This pull request updates the
.github/workflows/reusable-codeception-tests-centralized.yamlworkflow to add support for optionally enabling Elasticsearch as a service during tests. The main changes introduce a new input to control Elasticsearch activation and refactor the service configuration to conditionally start Elasticsearch based on this input.Elasticsearch service configuration:
ENABLE_ELASTICSEARCH(boolean, defaultfalse) to allow toggling Elasticsearch service in the workflow.elasticservice definition to conditionally start Elasticsearch only whenENABLE_ELASTICSEARCHis set totrue; otherwise, it uses a placeholder service (nginx:alpine). Environment variables and ports are also set conditionally.Workflow inputs and job configuration:
ENABLE_ELASTICSEARCHinput into the job environment, allowing downstream steps and services to react to its value.