Skip to content

Commit 16284a4

Browse files
authored
Merge pull request #286 from norkunas/ci-docker
Let GitHub Actions to setup meilisearch docker service
2 parents 3841fb0 + 4d0fda9 commit 16284a4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/tests.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515
# Will still run for each push to bump-meilisearch-v*
1616
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
1717
runs-on: ubuntu-latest
18+
services:
19+
meilisearch:
20+
image: getmeili/meilisearch:latest
21+
ports:
22+
- 7700:7700
23+
env:
24+
MEILI_MASTER_KEY: masterKey
25+
MEILI_NO_ANALYTICS: true
1826
strategy:
1927
matrix:
2028
php-version: ['7.4', '8.0', '8.1', '8.2']
@@ -50,8 +58,6 @@ jobs:
5058
if: matrix.php-version != '7.4'
5159
run: |
5260
composer remove --dev doctrine/annotations
53-
- name: Meilisearch setup with Docker
54-
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest meilisearch --master-key=masterKey --no-analytics
5561
- name: Run test suite
5662
run: composer test:unit
5763

0 commit comments

Comments
 (0)