From ed689d4a9d89322161984aaf8264b4319f5f7f0a Mon Sep 17 00:00:00 2001 From: Cenarius Date: Wed, 12 Feb 2025 16:40:40 +0100 Subject: [PATCH] Add input variable --- .github/workflows/call-universal_test_workflow.yaml | 8 ++++++++ .github/workflows/call-universal_test_workflow.yml | 8 ++++++++ .github/workflows/universal_workflow_light.yaml | 4 ++++ .github/workflows/universal_workflow_light.yml | 4 ++++ load_cached_testplan/action.yaml | 4 ++++ start_shop/action.yaml | 4 ++++ 6 files changed, 32 insertions(+) diff --git a/.github/workflows/call-universal_test_workflow.yaml b/.github/workflows/call-universal_test_workflow.yaml index ed85c590..89bed6da 100644 --- a/.github/workflows/call-universal_test_workflow.yaml +++ b/.github/workflows/call-universal_test_workflow.yaml @@ -531,6 +531,7 @@ jobs: id: install_module_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: ${{needs.init.outputs.global_title}} @@ -763,6 +764,7 @@ jobs: id: phpunit_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -871,6 +873,7 @@ jobs: id: codeception_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1010,6 +1013,7 @@ jobs: id: runtest_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1162,6 +1166,7 @@ jobs: id: phpmd_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1283,6 +1288,7 @@ jobs: id: phpstan_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1471,6 +1477,7 @@ jobs: if: ${{ env.SONAR_TOKEN != '' }} uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1556,6 +1563,7 @@ jobs: id: styles_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' diff --git a/.github/workflows/call-universal_test_workflow.yml b/.github/workflows/call-universal_test_workflow.yml index ed85c590..89bed6da 100644 --- a/.github/workflows/call-universal_test_workflow.yml +++ b/.github/workflows/call-universal_test_workflow.yml @@ -531,6 +531,7 @@ jobs: id: install_module_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: ${{needs.init.outputs.global_title}} @@ -763,6 +764,7 @@ jobs: id: phpunit_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -871,6 +873,7 @@ jobs: id: codeception_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1010,6 +1013,7 @@ jobs: id: runtest_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1162,6 +1166,7 @@ jobs: id: phpmd_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1283,6 +1288,7 @@ jobs: id: phpstan_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1471,6 +1477,7 @@ jobs: if: ${{ env.SONAR_TOKEN != '' }} uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1556,6 +1563,7 @@ jobs: id: styles_testplan_name uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' diff --git a/.github/workflows/universal_workflow_light.yaml b/.github/workflows/universal_workflow_light.yaml index 5e6fb6e8..c5389d81 100644 --- a/.github/workflows/universal_workflow_light.yaml +++ b/.github/workflows/universal_workflow_light.yaml @@ -285,6 +285,7 @@ jobs: id: itn uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -736,6 +737,7 @@ jobs: id: rstn uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -940,6 +942,7 @@ jobs: id: rstn uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1144,6 +1147,7 @@ jobs: if: ${{ env.SONAR_TOKEN != '' }} uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' diff --git a/.github/workflows/universal_workflow_light.yml b/.github/workflows/universal_workflow_light.yml index 5e6fb6e8..c5389d81 100644 --- a/.github/workflows/universal_workflow_light.yml +++ b/.github/workflows/universal_workflow_light.yml @@ -285,6 +285,7 @@ jobs: id: itn uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -736,6 +737,7 @@ jobs: id: rstn uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -940,6 +942,7 @@ jobs: id: rstn uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' @@ -1144,6 +1147,7 @@ jobs: if: ${{ env.SONAR_TOKEN != '' }} uses: OXID-eSales/github-actions/load_cached_testplan@v4 with: + runs_on: ${{ inputs.runs_on }} php: ${{ matrix.php }} mysql: ${{ matrix.mysql }} prefix: '${{ needs.init.outputs.global_title }}' diff --git a/load_cached_testplan/action.yaml b/load_cached_testplan/action.yaml index bec401bf..7956ce58 100644 --- a/load_cached_testplan/action.yaml +++ b/load_cached_testplan/action.yaml @@ -1,6 +1,10 @@ name: 'load_cached_testplan' description: 'Fetches the testplan and sets environment variables for it' inputs: + runs_on: + type: string + description: 'JSON string/array describing the runner' + required: true php: type: string required: false diff --git a/start_shop/action.yaml b/start_shop/action.yaml index 1c3c842c..5b25e20a 100644 --- a/start_shop/action.yaml +++ b/start_shop/action.yaml @@ -1,6 +1,10 @@ name: 'start_shop' description: 'Fetches a shop from cache and starts it' inputs: + runs_on: + type: string + description: 'JSON string/array describing the runner' + required: true cached_shop: type: string required: true