Skip to content

Commit 21df83b

Browse files
Frank Verschurendarthf1
authored andcommitted
feat(elasticsearch): re-introduce v7 support
1 parent 98a2f86 commit 21df83b

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,59 @@ jobs:
774774
- name: Run Behat tests
775775
run: vendor/bin/behat --out=std --format=progress --profile=elasticsearch --no-interaction
776776

777+
elasticsearch-v7:
778+
name: Behat (PHP ${{ matrix.php }}) (Elasticsearch v7)
779+
runs-on: ubuntu-latest
780+
timeout-minutes: 20
781+
strategy:
782+
matrix:
783+
php:
784+
- '8.3'
785+
fail-fast: false
786+
env:
787+
APP_ENV: elasticsearch
788+
steps:
789+
- name: Checkout
790+
uses: actions/checkout@v4
791+
- name: Configure sysctl limits
792+
run: |
793+
sudo swapoff -a
794+
sudo sysctl -w vm.swappiness=1
795+
sudo sysctl -w fs.file-max=262144
796+
sudo sysctl -w vm.max_map_count=262144
797+
- name: Runs Elasticsearch
798+
uses: elastic/elastic-github-actions/elasticsearch@master
799+
with:
800+
stack-version: '8.4.0'
801+
security-enabled: false
802+
- name: Setup PHP
803+
uses: shivammathur/setup-php@v2
804+
with:
805+
php-version: ${{ matrix.php }}
806+
tools: pecl, composer
807+
extensions: intl, bcmath, curl, openssl, mbstring, mongodb
808+
coverage: none
809+
ini-values: memory_limit=-1
810+
- name: Get composer cache directory
811+
id: composercache
812+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
813+
- name: Cache dependencies
814+
uses: actions/cache@v4
815+
with:
816+
path: ${{ steps.composercache.outputs.dir }}
817+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
818+
restore-keys: ${{ runner.os }}-composer-
819+
- name: Update project dependencies
820+
run: |
821+
composer global require soyuka/pmu
822+
composer global config allow-plugins.soyuka/pmu true --no-interaction
823+
composer global link .
824+
composer update elasticsearch/elasticsearch --prefer-lowest
825+
- name: Clear test app cache
826+
run: tests/Fixtures/app/console cache:clear --ansi
827+
- name: Run Behat tests
828+
run: vendor/bin/behat --out=std --format=progress --profile=elasticsearch --no-interaction
829+
777830
phpunit-no-deprecations:
778831
name: PHPUnit (PHP ${{ matrix.php }}) (no deprecations)
779832
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)