|
11 | 11 | - bump-meilisearch-v*
|
12 | 12 |
|
13 | 13 | jobs:
|
| 14 | + meilisearch-version: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - name: Checkout code |
| 18 | + uses: actions/checkout@v4 |
| 19 | + |
| 20 | + - name: Grep docker latest rc version of Meilisearch |
| 21 | + id: grep-step |
| 22 | + run: | |
| 23 | + MEILISEARCH_VERSION=$(sh .github/scripts/get-latest-meilisearch-rc.sh) |
| 24 | + echo $MEILISEARCH_VERSION |
| 25 | + echo "version=$MEILISEARCH_VERSION" >> $GITHUB_OUTPUT |
| 26 | + outputs: |
| 27 | + version: ${{ steps.grep-step.outputs.version }} |
| 28 | + |
14 | 29 | integration-tests:
|
15 | 30 | runs-on: ubuntu-latest
|
| 31 | + needs: ['meilisearch-version'] |
| 32 | + services: |
| 33 | + meilisearch: |
| 34 | + image: getmeili/meilisearch:${{ needs.meilisearch-version.outputs.version }} |
| 35 | + ports: |
| 36 | + - '7700:7700' |
| 37 | + env: |
| 38 | + MEILI_MASTER_KEY: masterKey |
| 39 | + MEILI_NO_ANALYTICS: true |
16 | 40 | strategy:
|
17 | 41 | matrix:
|
18 |
| - php-versions: ['7.4', '8.0'] |
19 |
| - name: integration-tests-against-rc (PHP ${{ matrix.php-versions }}) |
| 42 | + php-version: ['7.4', '8.1', '8.2', '8.3'] |
| 43 | + sf-version: ['5.4', '6.4', '7.0', '7.1'] |
| 44 | + exclude: |
| 45 | + - php-version: '7.4' |
| 46 | + sf-version: '6.4' |
| 47 | + - php-version: '7.4' |
| 48 | + sf-version: '7.0' |
| 49 | + - php-version: '7.4' |
| 50 | + sf-version: '7.1' |
| 51 | + - php-version: '8.1' |
| 52 | + sf-version: '5.4' |
| 53 | + - php-version: '8.1' |
| 54 | + sf-version: '7.0' |
| 55 | + - php-version: '8.1' |
| 56 | + sf-version: '7.1' |
| 57 | + - php-version: '8.2' |
| 58 | + sf-version: '5.4' |
| 59 | + - php-version: '8.3' |
| 60 | + sf-version: '5.4' |
| 61 | + - php-version: '8.3' |
| 62 | + sf-version: '5.4' |
| 63 | + |
| 64 | + name: integration-tests-against-rc (PHP ${{ matrix.php-version }}) (Symfony ${{ matrix.sf-version }}.*) |
20 | 65 | steps:
|
21 |
| - - uses: actions/checkout@v4 |
| 66 | + - name: Checkout code |
| 67 | + uses: actions/checkout@v4 |
| 68 | + |
22 | 69 | - name: Install PHP
|
23 | 70 | uses: shivammathur/setup-php@v2
|
24 | 71 | with:
|
25 |
| - php-version: ${{ matrix.php-versions }} |
| 72 | + php-version: ${{ matrix.php-version }} |
| 73 | + tools: composer, flex |
| 74 | + |
26 | 75 | - name: Validate composer.json and composer.lock
|
27 | 76 | run: composer validate
|
| 77 | + |
| 78 | + - name: Remove doctrine/annotations |
| 79 | + if: matrix.php-version != '7.4' |
| 80 | + run: sed -i '/doctrine\/annotations/d' composer.json |
| 81 | + |
28 | 82 | - name: Install dependencies
|
29 |
| - run: composer install --prefer-dist --no-progress --quiet |
30 |
| - - name: Get the latest Meilisearch RC |
31 |
| - run: echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV |
32 |
| - - name: Meilisearch (${{ env.MEILISEARCH_VERSION }}) setup with Docker |
33 |
| - run: docker run -d -p 7700:7700 getmeili/meilisearch:${{ env.MEILISEARCH_VERSION }} meilisearch --master-key=masterKey --no-analytics |
| 83 | + uses: ramsey/composer-install@v3 |
| 84 | + env: |
| 85 | + SYMFONY_REQUIRE: ${{ matrix.sf-version }}.* |
| 86 | + with: |
| 87 | + dependency-versions: 'highest' |
| 88 | + |
34 | 89 | - name: Run test suite
|
35 |
| - run: composer test:unit |
| 90 | + run: composer test:unit -- --coverage-clover coverage.xml |
0 commit comments