@@ -749,8 +749,60 @@ jobs:
749749 php-coveralls --coverage_clover=build/logs/behat/clover.xml
750750 continue-on-error : true
751751
752- elasticsearch :
753- name : Behat (PHP ${{ matrix.php }}) (Elasticsearch)
752+ elasticsearch-v9 :
753+ name : Behat (PHP ${{ matrix.php }}) (Elasticsearch v9)
754+ runs-on : ubuntu-latest
755+ timeout-minutes : 20
756+ strategy :
757+ matrix :
758+ php :
759+ - ' 8.4'
760+ fail-fast : false
761+ env :
762+ APP_ENV : elasticsearch
763+ steps :
764+ - name : Checkout
765+ uses : actions/checkout@v4
766+ - name : Configure sysctl limits
767+ run : |
768+ sudo swapoff -a
769+ sudo sysctl -w vm.swappiness=1
770+ sudo sysctl -w fs.file-max=262144
771+ sudo sysctl -w vm.max_map_count=262144
772+ - name : Runs Elasticsearch
773+ uses : elastic/elastic-github-actions/elasticsearch@master
774+ with :
775+ stack-version : ' 9.0.0'
776+ security-enabled : false
777+ - name : Setup PHP
778+ uses : shivammathur/setup-php@v2
779+ with :
780+ php-version : ${{ matrix.php }}
781+ tools : pecl, composer
782+ extensions : intl, bcmath, curl, openssl, mbstring, mongodb
783+ coverage : none
784+ ini-values : memory_limit=-1
785+ - name : Get composer cache directory
786+ id : composercache
787+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
788+ - name : Cache dependencies
789+ uses : actions/cache@v4
790+ with :
791+ path : ${{ steps.composercache.outputs.dir }}
792+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
793+ restore-keys : ${{ runner.os }}-composer-
794+ - name : Update project dependencies
795+ run : |
796+ composer global require soyuka/pmu
797+ composer global config allow-plugins.soyuka/pmu true --no-interaction
798+ composer global link .
799+ - name : Clear test app cache
800+ run : tests/Fixtures/app/console cache:clear --ansi
801+ - name : Run Behat tests
802+ run : vendor/bin/behat --out=std --format=progress --profile=elasticsearch --no-interaction
803+
804+ elasticsearch-v8 :
805+ name : Behat (PHP ${{ matrix.php }}) (Elasticsearch v8)
754806 runs-on : ubuntu-latest
755807 timeout-minutes : 20
756808 strategy :
@@ -796,6 +848,7 @@ jobs:
796848 composer global require soyuka/pmu
797849 composer global config allow-plugins.soyuka/pmu true --no-interaction
798850 composer global link .
851+ composer require elasticsearch/elasticsearch "^8.4" -W
799852 - name : Clear test app cache
800853 run : tests/Fixtures/app/console cache:clear --ansi
801854 - name : Run Behat tests
0 commit comments