Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/_internal_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test Actions

on:
push:
branches:
- main

jobs:
preTest:
runs-on: ubuntu-latest
outputs:
services: ${{ steps.services.outputs.serviceJson }}
steps:
- uses: actions/checkout@v3
- run: echo "serviceJson=$(cat .github/workflows/demo.json | jq -c)" >> "$GITHUB_OUTPUT"
id: services
shell: bash


test:
runs-on: ubuntu-latest
needs: [preTest]
services: ${{ fromJson(needs.preTest.outputs.services ) }}
steps:
- run: echo "Hello"
shell: bash

38 changes: 38 additions & 0 deletions .github/workflows/demo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"elasticsearch": {
"image": "elasticsearch:8.5.3",
"env": {
"discovery.type": "single-node",
"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"
]
},
"mysql": {
"image": "mysql:8.0",
"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": "rabbitmq:3.9-management",
"env": {
"RABBITMQ_DEFAULT_USER": "guest",
"RABBITMQ_DEFAULT_PASS": "guest"
},
"ports": [
"5672:5672"
]
}
}