Update action.yml
This commit is contained in:
+6
-10
@@ -292,24 +292,20 @@ runs:
|
||||
esac
|
||||
|
||||
|
||||
cat > run_all.sh <<'EOF'
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
exec >>"$LOG_FILE" 2>&1
|
||||
|
||||
echo "⚡ Running tests and generating reports..."
|
||||
|
||||
# MAIN
|
||||
inputs.test-run-cmd
|
||||
cat > custom_cmd.sh <<'EOS'
|
||||
${{ inputs.test-run-cmd }}
|
||||
EOS
|
||||
|
||||
chmod +x custom_cmd.sh
|
||||
./custom_cmd.sh
|
||||
|
||||
echo "▶️ END"
|
||||
EOF
|
||||
|
||||
chmod +x 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
|
||||
awk '/=+ short test summary info =+/,/=+.* in .*s =+/' outputs/full-output.log > outputs/short-test-output.log
|
||||
|
||||
|
||||
Reference in New Issue
Block a user