diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b4df6def02..06dea177ece 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -774,6 +774,59 @@ jobs: - name: Run Behat tests run: vendor/bin/behat --out=std --format=progress --profile=elasticsearch --no-interaction + elasticsearch-v7: + name: Behat (PHP ${{ matrix.php }}) (Elasticsearch v7) + runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + matrix: + php: + - '8.3' + fail-fast: false + env: + APP_ENV: elasticsearch + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Configure sysctl limits + run: | + sudo swapoff -a + sudo sysctl -w vm.swappiness=1 + 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: '8.4.0' + security-enabled: false + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: pecl, composer + extensions: intl, bcmath, curl, openssl, mbstring, mongodb + coverage: none + ini-values: memory_limit=-1 + - name: Get composer cache directory + id: composercache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache dependencies + uses: actions/cache@v4 + with: + path: ${{ steps.composercache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: ${{ runner.os }}-composer- + - name: Update project dependencies + run: | + composer global require soyuka/pmu + composer global config allow-plugins.soyuka/pmu true --no-interaction + composer global link . + composer update elasticsearch/elasticsearch --prefer-lowest + - name: Clear test app cache + run: tests/Fixtures/app/console cache:clear --ansi + - name: Run Behat tests + run: vendor/bin/behat --out=std --format=progress --profile=elasticsearch --no-interaction + phpunit-no-deprecations: name: PHPUnit (PHP ${{ matrix.php }}) (no deprecations) runs-on: ubuntu-latest