88 workflow_dispatch :
99
1010jobs :
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 :
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