From e539304344061313c2965054d90a204b6f8fe87b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Thu, 10 Apr 2025 12:20:21 +0200 Subject: [PATCH] set test type --- .../workflows/reusable-build-test-release.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable-build-test-release.yml b/.github/workflows/reusable-build-test-release.yml index f9cf1bb7..95fa991f 100644 --- a/.github/workflows/reusable-build-test-release.yml +++ b/.github/workflows/reusable-build-test-release.yml @@ -39,7 +39,7 @@ on: required: false description: "branch for k8s manifests to run the tests on" type: string - default: "v3.3.2" + default: "user/mgazda/test_ep" scripted-inputs-os-list: required: false description: "list of OS used for scripted input tests" @@ -291,7 +291,9 @@ jobs: matrix_Splunk: ${{ steps.determine_splunk.outputs.matrixSplunk }} matrix_supportedSplunk: ${{ steps.matrix.outputs.supportedSplunk }} matrix_latestSplunk: ${{ steps.matrix.outputs.latestSplunk }} + matrix_epSupportingSplunk: ${{ steps.matrix.outputs.epSupportingSplunk }} matrix_supportedSC4S: ${{ steps.matrix.outputs.supportedSC4S }} + matrix_singleSC4S: ${{ steps.select_single_sc4s.outputs.matrixSingleSC4S }} matrix_supportedModinputFunctionalVendors: ${{ steps.matrix.outputs.supportedModinputFunctionalVendors }} matrix_supportedUIVendors: ${{ steps.matrix.outputs.supportedUIVendors }} permissions: @@ -303,7 +305,7 @@ jobs: submodules: false persist-credentials: false - id: matrix - uses: splunk/addonfactory-test-matrix-action@v3.0 + uses: splunk/addonfactory-test-matrix-action@user/mgazda/ep_test - id: determine_splunk env: wfe_run_on_splunk_latest: ${{ inputs.wfe-run-on-splunk-latest }} @@ -316,11 +318,15 @@ jobs: else echo "matrixSplunk=${{toJson(steps.matrix.outputs.supportedSplunk) }}" >> "$GITHUB_OUTPUT" fi + - id: select_single_sc4s + run: + echo "matrixSingleSC4S=$(echo '${{ steps.matrix.outputs.supportedSC4S }}' | jq -c '.[0]')" >> "$GITHUB_OUTPUT" - name: job summary run: | splunk_version_list=$(echo '${{ steps.determine_splunk.outputs.matrixSplunk }}' | jq -r '.[].version') sc4s_version_list=$(echo '${{ steps.matrix.outputs.supportedSC4S }}' | jq -r '.[].version') - echo -e "## Summary of Versions Used\n- **Splunk versions used:** (${splunk_version_list})\n- **SC4S versions used:** (${sc4s_version_list})\n- Browser: Chrome" >> "$GITHUB_STEP_SUMMARY" + splunk_with_ep_list=$(echo '${{ steps.matrix.outputs.epSupportingSplunk }}' | jq -r '.version') + echo -e "## Summary of Versions Used\n- **Splunk versions used:** (${splunk_version_list})\n- **SC4S versions used:** (${sc4s_version_list})\n-EP supporting splunk: (${splunk_with_ep_list})\n- Browser: Chrome" >> "$GITHUB_STEP_SUMMARY" fossa-scan: runs-on: ubuntu-latest steps: @@ -1313,6 +1319,11 @@ jobs: matrix: splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }} sc4s: ${{ fromJson(needs.meta.outputs.matrix_supportedSC4S) }} + test-type: [knowledge] + include: + - splunk: ${{ fromJson(needs.meta.outputs.matrix_epSupportingSplunk) }} + sc4s: ${{ fromJson(needs.meta.outputs.matrix_singleSC4S) }} + test-type: "knowledge_ep" container: image: ghcr.io/splunk/workflow-engine-base:4.1.0 env: @@ -1376,7 +1387,7 @@ jobs: uses: splunk/wfe-test-runner-action@v5.1 with: splunk: ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} - test-type: ${{ env.TEST_TYPE }} + test-type: ${{ matrix.test-type }} test-args: ${{ needs.setup-workflow.outputs.exit-first }} job-name: ${{ steps.create-job-name.outputs.job-name }} labels: ${{ needs.setup.outputs.labels }}