This repository was archived by the owner on Jun 17, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
.github/actions/test-report Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 REPORT_DIR=$(dirname "${{ inputs.report-path }}")
2626 REPORT_PATTERN=$(basename "${{ inputs.report-path }}")
2727
28- # Use compgen to check if the glob expands to any files
29- if compgen -G "${{ inputs.report-path }}" > /dev/null 2>&1; then
28+ if ls ${{ inputs.report-path }} 1>/dev/null 2>&1; then
3029 TESTS_RUN=$(grep -h "tests=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*tests="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
3130 FAILURES=$(grep -h "failures=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*failures="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
3231 ERRORS=$(grep -h "errors=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*errors="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
You can’t perform that action at this time.
0 commit comments