Add distinct attribute at search (#648) #416
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Testing the code base against the Meilisearch pre-releases | |
name: Pre-Release Tests | |
# Will only run for PRs and pushes to bump-meilisearch-v* | |
on: | |
push: | |
branches: bump-meilisearch-v* | |
pull_request: | |
branches: bump-meilisearch-v* | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['7.4', '8.0', '8.1', '8.2'] | |
name: integration-tests-against-rc (PHP ${{ matrix.php-versions }}) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: none | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: | | |
composer remove --dev friendsofphp/php-cs-fixer --no-update --no-interaction | |
composer install --prefer-dist --no-progress --no-suggest | |
- name: Get the latest Meilisearch RC | |
run: echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV | |
- name: Meilisearch (${{ env.MEILISEARCH_VERSION }}) setup with Docker | |
run: docker run -d -p 7700:7700 getmeili/meilisearch:${{ env.MEILISEARCH_VERSION }} meilisearch --master-key=masterKey --no-analytics | |
- name: Run test suite - default HTTP client (Guzzle 7) | |
run: | | |
sh scripts/tests.sh | |
composer remove --dev guzzlehttp/guzzle http-interop/http-factory-guzzle | |
- name: Run test suite - php-http/guzzle7-adapter | |
run: | | |
composer require --dev php-http/guzzle7-adapter http-interop/http-factory-guzzle | |
sh scripts/tests.sh | |
composer remove --dev php-http/guzzle7-adapter http-interop/http-factory-guzzle | |
- name: Run test suite - symfony/http-client | |
run: | | |
composer require --dev symfony/http-client nyholm/psr7 | |
sh scripts/tests.sh | |
composer remove --dev symfony/http-client nyholm/psr7 | |
- name: Run test suite - php-http/curl-client | |
run: | | |
composer require --dev php-http/curl-client nyholm/psr7 | |
sh scripts/tests.sh | |
composer remove --dev php-http/curl-client nyholm/psr7 | |
- name: Run test suite - kriswallsmith/buzz | |
run: | | |
composer require --dev kriswallsmith/buzz nyholm/psr7 --with-all-dependencies | |
composer update php-http/client-common:2.6.0 php-http/httplug:2.3.0 psr/http-message | |
sh scripts/tests.sh | |
composer remove --dev kriswallsmith/buzz nyholm/psr7 | |
test_php_7_guzzle_6: | |
runs-on: ubuntu-latest | |
name: integration-tests-against-rc (PHP 7.4 & Guzzle 6) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
coverage: none | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: | | |
composer remove --dev friendsofphp/php-cs-fixer --no-update --no-interaction | |
composer update --prefer-dist --no-progress | |
composer remove --dev guzzlehttp/guzzle http-interop/http-factory-guzzle | |
composer update php-http/client-common:2.6.0 php-http/httplug:2.3.0 psr/http-message | |
- name: Get the latest Meilisearch RC | |
run: echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV | |
- name: Meilisearch (${{ env.MEILISEARCH_VERSION }}) setup with Docker | |
run: docker run -d -p 7700:7700 getmeili/meilisearch:${{ env.MEILISEARCH_VERSION }} meilisearch --master-key=masterKey --no-analytics | |
- name: Run test suite - php-http/guzzle6-adapter | |
run: | | |
composer require --dev php-http/guzzle6-adapter http-interop/http-factory-guzzle | |
sh scripts/tests.sh |