diff --git a/action.yml b/action.yml index 64c7174..c35fb79 100644 --- a/action.yml +++ b/action.yml @@ -101,6 +101,13 @@ runs: --json-report-file=${{ inputs.report-dir }}/outputs/pytest-report.json \ --capture=no >> ${{ inputs.report-dir }}/outputs/full-output.log 2>&1 + if [ -f "${{ inputs.report-dir }}/outputs/full-output.log" ]; then + echo "✅ full-output.log exists" + else + echo "❌ full-output.log is missing" + exit 1 + fi + awk '/=+ test session starts =+/{flag=1} /-+ JSON report -+/{flag=0} flag' ${{ inputs.report-dir }}/markdown/full-output.log > ${{ inputs.report-dir }}/outputs/raw-test-output.log awk '/=+ short test summary info =+/,/=+.* in .*s =+/' ${{ inputs.report-dir }}/markdown/full-output.log > ${{ inputs.report-dir }}/outputs/short-test-output.log