Skip to content

Commit 4bd0b39

Browse files
authored
Merge pull request #343 from norkunas/prepare-release
Prepare release
2 parents ecac616 + e110588 commit 4bd0b39

File tree

5 files changed

+80
-13
lines changed

5 files changed

+80
-13
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ indent_size = 4
1212
max_line_length = 120
1313

1414
[*.{yml,yaml}]
15-
indent_size = 4
15+
indent_size = 2
1616

1717
[*.json]
1818
indent_size = 2
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
# This script is used in the SDK CIs to fetch the latest Meilisearch RC name (ex: v0.16.0rc2).
4+
# The Meilisearch RC is needed when maintainers are developing features during the pre-release week because the final Meilisearch release is not out yet.
5+
6+
temp_file='temp_file' # temp_file needed because `grep` would start before the download is over
7+
curl -s 'https://api.github.com/repos/meilisearch/meilisearch/releases' > "$temp_file"
8+
latest_rc_release=$(cat "$temp_file" \
9+
| grep -E 'tag_name' | grep 'rc' | head -1 \
10+
| tr -d ',"' | cut -d ':' -f2 | tr -d ' ')
11+
rm -rf "$temp_file"
12+
echo "$latest_rc_release"

.github/workflows/pre-release-tests.yml

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,80 @@ on:
1111
- bump-meilisearch-v*
1212

1313
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+
1429
integration-tests:
1530
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
1640
strategy:
1741
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 }}.*)
2065
steps:
21-
- uses: actions/checkout@v4
66+
- name: Checkout code
67+
uses: actions/checkout@v4
68+
2269
- name: Install PHP
2370
uses: shivammathur/setup-php@v2
2471
with:
25-
php-version: ${{ matrix.php-versions }}
72+
php-version: ${{ matrix.php-version }}
73+
tools: composer, flex
74+
2675
- name: Validate composer.json and composer.lock
2776
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+
2882
- 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+
3489
- name: Run test suite
35-
run: composer test:unit
90+
run: composer test:unit -- --coverage-clover coverage.xml

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
meilisearch:
2323
image: getmeili/meilisearch:latest
2424
ports:
25-
- 7700:7700
25+
- '7700:7700'
2626
env:
2727
MEILI_MASTER_KEY: masterKey
2828
MEILI_NO_ANALYTICS: true

src/MeilisearchBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
final class MeilisearchBundle extends Bundle
1010
{
11-
public const VERSION = '0.15.3';
11+
public const VERSION = '0.15.4';
1212

1313
public static function qualifiedVersion(): string
1414
{

0 commit comments

Comments
 (0)