Skip to content

Commit 3ffb3bc

Browse files
committed
feat(integration): compute services from matrix
1 parent 51c6533 commit 3ffb3bc

1 file changed

Lines changed: 1 addition & 57 deletions

File tree

.github/workflows/integration.yaml

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -59,66 +59,10 @@ on:
5959
jobs:
6060
integration_test:
6161
runs-on: ${{ matrix.os }}
62+
services: ${{ matrix.services }}
6263
strategy:
6364
fail-fast: ${{ inputs.fail-fast }}
6465
matrix: ${{ fromJSON(inputs.matrix) }}
65-
services:
66-
elasticsearch:
67-
image: ${{ matrix.elasticsearch || '' }}
68-
env:
69-
# By default, ElasticSearch refuses to spawn in single node configuration, as it expects redundancy.
70-
# This is a dev environment, so redundancy is just wasteful.
71-
discovery.type: single-node
72-
# Disable HTTPS and password authentication
73-
# this is a local dev environment, so the added CA chain complexity is an extreme overkill
74-
xpack.security.enabled: false
75-
xpack.security.http.ssl.enabled: false
76-
xpack.security.transport.ssl.enabled: false
77-
78-
options: >-
79-
--health-cmd "curl http://localhost:9200/_cluster/health"
80-
--health-interval 10s
81-
--health-timeout 5s
82-
--health-retries 10
83-
ports:
84-
- 9200:9200
85-
86-
opensearch:
87-
image: ${{ matrix.opensearch || '' }}
88-
env:
89-
# By default, ElasticSearch refuses to spawn in single node configuration, as it expects redundancy.
90-
# This is a dev environment, so redundancy is just wasteful.
91-
discovery.type: single-node
92-
# Disable HTTPS and password authentication
93-
DISABLE_INSTALL_DEMO_CONFIG: true
94-
DISABLE_SECURITY_PLUGIN: true
95-
96-
options: >-
97-
--health-cmd "curl http://localhost:9200/_cluster/health"
98-
--health-interval 10s
99-
--health-timeout 5s
100-
--health-retries 10
101-
ports:
102-
- 9200:9200
103-
104-
mysql:
105-
image: ${{ matrix.mysql }}
106-
env:
107-
MYSQL_DATABASE: magento_integration_tests
108-
MYSQL_USER: user
109-
MYSQL_PASSWORD: password
110-
MYSQL_ROOT_PASSWORD: rootpassword
111-
ports:
112-
- 3306:3306
113-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
114-
115-
rabbitmq:
116-
image: ${{ matrix.rabbitmq }}
117-
env:
118-
RABBITMQ_DEFAULT_USER: guest
119-
RABBITMQ_DEFAULT_PASS: guest
120-
ports:
121-
- 5672:5672
12266
steps:
12367
- uses: actions/checkout@v4
12468
- name: Set PHP Version

0 commit comments

Comments
 (0)