From 4054e10ad698d9a8aa32fa94fd0a087a2e9c0bef Mon Sep 17 00:00:00 2001 From: Domenic Barbuzzi Date: Wed, 18 Dec 2024 09:11:26 -0500 Subject: [PATCH] Fix multi-file results in `testmo-run-submit-thread` action (#42) * Fix globbing * Bump versions --- actions/testmo-create-resources/action.yml | 2 +- actions/testmo-run-complete/action.yml | 2 +- actions/testmo-run-create/action.yml | 2 +- actions/testmo-run-submit-thread/action.yml | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/actions/testmo-create-resources/action.yml b/actions/testmo-create-resources/action.yml index c0e29fe..ddbaa90 100644 --- a/actions/testmo-create-resources/action.yml +++ b/actions/testmo-create-resources/action.yml @@ -16,7 +16,7 @@ runs: using: composite steps: - name: install Testmo CLI tool - uses: neuralmagic/nm-actions/actions/install-testmo@1.10.0 + uses: neuralmagic/nm-actions/actions/install-testmo@v1.11.0 - name: add actions path to PATH shell: bash diff --git a/actions/testmo-run-complete/action.yml b/actions/testmo-run-complete/action.yml index f93965a..da64f8c 100644 --- a/actions/testmo-run-complete/action.yml +++ b/actions/testmo-run-complete/action.yml @@ -17,7 +17,7 @@ runs: using: composite steps: - name: install Testmo CLI tool - uses: neuralmagic/nm-actions/actions/install-testmo@1.10.0 + uses: neuralmagic/nm-actions/actions/install-testmo@v1.11.0 - run: | echo "completing TESTMO run ..." diff --git a/actions/testmo-run-create/action.yml b/actions/testmo-run-create/action.yml index 4f7d317..5e7821f 100644 --- a/actions/testmo-run-create/action.yml +++ b/actions/testmo-run-create/action.yml @@ -28,7 +28,7 @@ runs: using: composite steps: - name: install Testmo CLI tool - uses: neuralmagic/nm-actions/actions/install-testmo@1.10.0 + uses: neuralmagic/nm-actions/actions/install-testmo@v1.11.0 - name: create run id: testmo_id diff --git a/actions/testmo-run-submit-thread/action.yml b/actions/testmo-run-submit-thread/action.yml index 5a8997b..716c94b 100644 --- a/actions/testmo-run-submit-thread/action.yml +++ b/actions/testmo-run-submit-thread/action.yml @@ -32,7 +32,7 @@ runs: using: composite steps: - name: install Testmo CLI tool - uses: neuralmagic/nm-actions/actions/install-testmo@1.10.0 + uses: neuralmagic/nm-actions/actions/install-testmo@v1.11.0 - name: add scripts folder to PATH run: echo "${{ github.action_path }}/../../scripts" >> $GITHUB_PATH @@ -49,8 +49,8 @@ runs: fi # verify results folder contains XML result files - RESULTS=$(find "$RESULTS_FOLDER" -type f -name "*.xml") - if [[ -z "$RESULTS" ]]; then + readarray -d '' RESULTS < <(find "$RESULTS_FOLDER" -type f -name "*.xml" -print0) + if [[ ${#RESULTS[@]} == 0 ]]; then echo "Results folder '$RESULTS_FOLDER' does not contain any XML result files:" ls -A "$RESULTS_FOLDER" echo "::warning title=$GITHUB_JOB - MISSING RESULT FILES::Results folder did not contain any XML result files" @@ -71,7 +71,7 @@ runs: npx testmo automation:run:submit-thread \ --instance "$TESTMO_URL" \ --run-id "$TESTMO_RUN_ID" \ - --results "$RESULTS" \ + --results "${RESULTS[@]}" \ --thread-resources "$thread_resources" \ -- step-status.sh "$STEP_STATUS" || SUCCESS=$?