Skip to content

Commit cc8c534

Browse files
authored
feat(actions): replace elasticsearch with opensearch (#137)
* fix: update elasticsearch config for tmp directory * feat: update workflow to use opensearch instead of elasticsearch
1 parent 7bb3348 commit cc8c534

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/magento-compatibility.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
test-elasticsearch:
12-
name: Magento ${{ matrix.magento-version }} with PHP ${{ matrix.php-version }} Test
11+
test-opensearch-247:
12+
name: Magento ${{ matrix.magento-version }} with PHP ${{ matrix.php-version }} (OpenSearch) Test
1313
runs-on: ubuntu-latest
1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
include:
1818
- magento-version: "2.4.7"
1919
php-version: "8.3"
20-
search-engine-name: "elasticsearch7"
20+
search-engine-name: "opensearch"
2121
- magento-version: "2.4.7-p8"
2222
php-version: "8.3"
23-
search-engine-name: "elasticsearch7"
23+
search-engine-name: "opensearch"
2424

2525
services:
2626
mysql:
@@ -32,13 +32,14 @@ jobs:
3232
- 3306:3306
3333
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
3434

35-
elasticsearch:
36-
image: elasticsearch:7.17.0
35+
opensearch:
36+
image: opensearchproject/opensearch:2.11.0
3737
ports:
3838
- 9200:9200
3939
env:
4040
discovery.type: single-node
41-
ES_JAVA_OPTS: -Xms512m -Xmx512m
41+
plugins.security.disabled: true
42+
OPENSEARCH_JAVA_OPTS: -Xms512m -Xmx512m
4243
options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10
4344

4445
steps:
@@ -95,9 +96,9 @@ jobs:
9596
--use-rewrites=1 \
9697
--backend-frontname=admin \
9798
--search-engine=${{ matrix.search-engine-name }} \
98-
--elasticsearch-host=localhost \
99-
--elasticsearch-port=9200 \
100-
--elasticsearch-index-prefix=magento \
99+
--opensearch-host=localhost \
100+
--opensearch-port=9200 \
101+
--opensearch-index-prefix=magento \
101102
--cleanup-database
102103
103104
- name: Install MageForge Module from current commit

0 commit comments

Comments
 (0)