diff --git a/action.yml b/action.yml index 345e242..a31d719 100644 --- a/action.yml +++ b/action.yml @@ -291,9 +291,8 @@ runs: pip|custom) ;; esac - WRAP="${{ inputs.session-wrapper }} bash -c" - cat > run_all.sh < run_all.sh <<'EOF' #!/bin/bash set -e set -x @@ -301,18 +300,20 @@ runs: echo "⚡ Running tests and generating reports..." - echo "⏩ Running tests..." + # MAIN if [ -n "${{ inputs.test-run-cmd }}" ]; then - ${{ inputs.test-run-cmd }} + echo "⏩ Running custom test-run-cmd..." + eval "${{ inputs.test-run-cmd }}" else - $CMD + echo "⏩ Running default CMD..." + eval "$CMD" fi echo "▶️ END" EOF chmod +x run_all.sh - $WRAP "./run_all.sh" + ./run_all.sh awk '/=+ test session starts =+/{flag=1} /-+ JSON report -+/{flag=0} flag' outputs/full-output.log > outputs/raw-test-output.log