Skip to content

Commit

Permalink
Fix multi-file results in testmo-run-submit-thread action (#42)
Browse files Browse the repository at this point in the history
* Fix globbing

* Bump versions
  • Loading branch information
dbarbuzzi authored Dec 18, 2024
1 parent 50e6d5d commit 4054e10
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion actions/testmo-create-resources/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion actions/testmo-run-complete/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."
Expand Down
2 changes: 1 addition & 1 deletion actions/testmo-run-create/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions actions/testmo-run-submit-thread/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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=$?
Expand Down

0 comments on commit 4054e10

Please sign in to comment.