Skip to content

Commit

Permalink
TPI-4331: Add elasticsearch for 2.4.4 and 2.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepayone committed Oct 9, 2024
1 parent 1dfc140 commit d33c457
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_magento244.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.6.0

- name: PHP Syntax Checker
run: find . -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )

Expand All @@ -56,12 +61,12 @@ jobs:
--db-host=127.0.0.1:4444 --db-name=magento --db-user=root --db-password=root --admin-firstname=Dieter \
--admin-lastname=Demo [email protected] --admin-user=DieterDemo \
--admin-password=72q980hdfq2378ga9w87dg6 --language=de_DE --currency=EUR --timezone=Europe/Berlin \
--disable-modules=Magento_Elasticsearch7,Magento_Elasticsearch
--search-engine=elasticsearch7 --elasticsearch-host=localhost \
--elasticsearch-port=9200
composer require --ignore-platform-reqs payone-gmbh/magento-2 dev-master
rm -rf /tmp/build/vendor/payone-gmbh/magento-2/*
cp -R $GITHUB_WORKSPACE/* /tmp/build/vendor/payone-gmbh/magento-2
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/payone-gmbh/magento-2/Test/Unit
8 changes: 7 additions & 1 deletion .github/workflows/build_magento245.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.6.0

- name: PHP Syntax Checker
run: find . -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )

Expand All @@ -56,7 +61,8 @@ jobs:
--db-host=127.0.0.1:4444 --db-name=magento --db-user=root --db-password=root --admin-firstname=Dieter \
--admin-lastname=Demo [email protected] --admin-user=DieterDemo \
--admin-password=72q980hdfq2378ga9w87dg6 --language=de_DE --currency=EUR --timezone=Europe/Berlin \
--disable-modules=Magento_Elasticsearch7,Magento_Elasticsearch
--search-engine=elasticsearch7 --elasticsearch-host=localhost \
--elasticsearch-port=9200
composer require --ignore-platform-reqs payone-gmbh/magento-2 dev-master
rm -rf /tmp/build/vendor/payone-gmbh/magento-2/*
cp -R $GITHUB_WORKSPACE/* /tmp/build/vendor/payone-gmbh/magento-2
Expand Down

0 comments on commit d33c457

Please sign in to comment.