diff --git a/.github/workflows/build_magento244.yml b/.github/workflows/build_magento244.yml index 06a15d83..189171f0 100644 --- a/.github/workflows/build_magento244.yml +++ b/.github/workflows/build_magento244.yml @@ -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" ) @@ -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 --admin-email=dieterdemo@payone.com --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 @@ -64,4 +70,3 @@ jobs: 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 - diff --git a/.github/workflows/build_magento245.yml b/.github/workflows/build_magento245.yml index 6298e6a8..ec1bb32b 100644 --- a/.github/workflows/build_magento245.yml +++ b/.github/workflows/build_magento245.yml @@ -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" ) @@ -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 --admin-email=dieterdemo@payone.com --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