mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
feat(integration)!: use services from supported-version (#207)
This commit is contained in:
@@ -31,8 +31,7 @@ jobs:
|
|||||||
- uses: ./supported-version
|
- uses: ./supported-version
|
||||||
with:
|
with:
|
||||||
kind: currently-supported
|
kind: currently-supported
|
||||||
id: supported-version
|
include_services: true
|
||||||
- run: echo ${{ steps.supported-version.outputs.matrix }}
|
|
||||||
integration-workflow:
|
integration-workflow:
|
||||||
needs: compute_matrix
|
needs: compute_matrix
|
||||||
uses: ./.github/workflows/integration.yaml
|
uses: ./.github/workflows/integration.yaml
|
||||||
|
|||||||
@@ -59,66 +59,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
integration_test:
|
integration_test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
services: ${{ matrix.services }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: ${{ inputs.fail-fast }}
|
fail-fast: ${{ inputs.fail-fast }}
|
||||||
matrix: ${{ fromJSON(inputs.matrix) }}
|
matrix: ${{ fromJSON(inputs.matrix) }}
|
||||||
services:
|
|
||||||
elasticsearch:
|
|
||||||
image: ${{ matrix.elasticsearch || '' }}
|
|
||||||
env:
|
|
||||||
# By default, ElasticSearch refuses to spawn in single node configuration, as it expects redundancy.
|
|
||||||
# This is a dev environment, so redundancy is just wasteful.
|
|
||||||
discovery.type: single-node
|
|
||||||
# Disable HTTPS and password authentication
|
|
||||||
# this is a local dev environment, so the added CA chain complexity is an extreme overkill
|
|
||||||
xpack.security.enabled: false
|
|
||||||
xpack.security.http.ssl.enabled: false
|
|
||||||
xpack.security.transport.ssl.enabled: false
|
|
||||||
|
|
||||||
options: >-
|
|
||||||
--health-cmd "curl http://localhost:9200/_cluster/health"
|
|
||||||
--health-interval 10s
|
|
||||||
--health-timeout 5s
|
|
||||||
--health-retries 10
|
|
||||||
ports:
|
|
||||||
- 9200:9200
|
|
||||||
|
|
||||||
opensearch:
|
|
||||||
image: ${{ matrix.opensearch || '' }}
|
|
||||||
env:
|
|
||||||
# By default, ElasticSearch refuses to spawn in single node configuration, as it expects redundancy.
|
|
||||||
# This is a dev environment, so redundancy is just wasteful.
|
|
||||||
discovery.type: single-node
|
|
||||||
# Disable HTTPS and password authentication
|
|
||||||
DISABLE_INSTALL_DEMO_CONFIG: true
|
|
||||||
DISABLE_SECURITY_PLUGIN: true
|
|
||||||
|
|
||||||
options: >-
|
|
||||||
--health-cmd "curl http://localhost:9200/_cluster/health"
|
|
||||||
--health-interval 10s
|
|
||||||
--health-timeout 5s
|
|
||||||
--health-retries 10
|
|
||||||
ports:
|
|
||||||
- 9200:9200
|
|
||||||
|
|
||||||
mysql:
|
|
||||||
image: ${{ matrix.mysql }}
|
|
||||||
env:
|
|
||||||
MYSQL_DATABASE: magento_integration_tests
|
|
||||||
MYSQL_USER: user
|
|
||||||
MYSQL_PASSWORD: password
|
|
||||||
MYSQL_ROOT_PASSWORD: rootpassword
|
|
||||||
ports:
|
|
||||||
- 3306:3306
|
|
||||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
|
||||||
|
|
||||||
rabbitmq:
|
|
||||||
image: ${{ matrix.rabbitmq }}
|
|
||||||
env:
|
|
||||||
RABBITMQ_DEFAULT_USER: guest
|
|
||||||
RABBITMQ_DEFAULT_PASS: guest
|
|
||||||
ports:
|
|
||||||
- 5672:5672
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set PHP Version
|
- name: Set PHP Version
|
||||||
|
|||||||
Reference in New Issue
Block a user