|
59 | 59 | jobs: |
60 | 60 | integration_test: |
61 | 61 | runs-on: ${{ matrix.os }} |
| 62 | + services: ${{ matrix.services }} |
62 | 63 | strategy: |
63 | 64 | fail-fast: ${{ inputs.fail-fast }} |
64 | 65 | 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 |
122 | 66 | steps: |
123 | 67 | - uses: actions/checkout@v4 |
124 | 68 | - name: Set PHP Version |
|
0 commit comments