Skip to content

Commit 97a4184

Browse files
committed
feat: migrate to string on the json entry
1 parent 2f9f547 commit 97a4184

23 files changed

Lines changed: 930 additions & 87 deletions

File tree

.github/workflows/job-tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@ jobs:
3232
MYSQL_PASSWORD: mysql
3333
MYSQL_DATABASE: mysql
3434
MYSQL_ROOT_PASSWORD: root
35+
elasticsearch:
36+
image: elasticsearch:8.19.0
37+
env:
38+
discovery.type: single-node
39+
xpack.security.enabled: "false"
40+
options: >-
41+
--health-cmd "curl http://localhost:9200/_cluster/health"
42+
--health-interval 10s
43+
--health-timeout 5s
44+
--health-retries 10
45+
ports:
46+
- 9200/tcp
47+
meilisearch:
48+
image: getmeili/meilisearch:v1.16
49+
env:
50+
MEILI_MASTER_KEY: masterKey
51+
MEILI_NO_ANALYTICS: "true"
52+
ports:
53+
- 7700/tcp
3554
strategy:
3655
fail-fast: false
3756
matrix:
@@ -118,6 +137,8 @@ jobs:
118137
env:
119138
PGSQL_DATABASE_URL: pgsql://postgres:postgres@127.0.0.1:${{ job.services.postgres.ports['5432'] }}/postgres?serverVersion=11&charset=utf8
120139
MYSQL_DATABASE_URL: mysql://mysql:mysql@127.0.0.1:${{ job.services.mysql.ports['3306'] }}/mysql
140+
ELASTICSEARCH_URL: http://127.0.0.1:${{ job.services.elasticsearch.ports['9200'] }}
141+
MEILISEARCH_URL: http://127.0.0.1:${{ job.services.meilisearch.ports['7700'] }}
121142
SQLITE_DATABASE_URL: "sqlite:///:memory:"
122143
AZURITE_HOST: "localhost"
123144
AZURITE_BLOB_PORT: "10000"

compose.yml.dist

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,29 @@ services:
2626
MYSQL_ROOT_PASSWORD: root
2727
networks:
2828
- flow-php
29+
elasticsearch:
30+
image: elasticsearch:8.19.0
31+
container_name: flow-php-elasticsearch
32+
ports:
33+
- 9200:9200
34+
environment:
35+
- node.name=es01
36+
- discovery.type=single-node
37+
- xpack.security.enabled=false
38+
- bootstrap.memory_lock=true
39+
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
40+
networks:
41+
- flow-php
42+
meilisearch:
43+
image: getmeili/meilisearch:v1.16
44+
container_name: flow-php-meilisearch
45+
ports:
46+
- "7700:7700"
47+
environment:
48+
- MEILI_MASTER_KEY=masterKey
49+
- MEILI_NO_ANALYTICS=true
50+
networks:
51+
- flow-php
2952
azurite:
3053
image: mcr.microsoft.com/azure-storage/azurite
3154
container_name: flow-php-azurite

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252
"webmozart/glob": "^3.0 || ^4.0"
5353
},
5454
"require-dev": {
55+
"cmsig/seal-elasticsearch-adapter": "^0.12",
56+
"cmsig/seal-meilisearch-adapter": "^0.12",
5557
"cmsig/seal-memory-adapter": "^0.12",
5658
"composer/semver": "^3.4",
59+
"elasticsearch/elasticsearch": "^8.5.3",
5760
"fakerphp/faker": "^1.23",
5861
"fig/log-test": "^1.1",
5962
"grpc/grpc": "^1.74",

0 commit comments

Comments
 (0)