Update action.yml

This commit is contained in:
2025-08-23 19:07:03 +02:00
parent aa9be97ea5
commit d5010460db
+7 -6
View File
@@ -291,9 +291,8 @@ runs:
pip|custom) ;;
esac
WRAP="${{ inputs.session-wrapper }} bash -c"
cat > run_all.sh <<EOF
cat > 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