We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a56a227 commit 0fbd0dfCopy full SHA for 0fbd0df
1 file changed
.github/actions/test-report/action.yml
@@ -25,8 +25,7 @@ runs:
25
REPORT_DIR=$(dirname "${{ inputs.report-path }}")
26
REPORT_PATTERN=$(basename "${{ inputs.report-path }}")
27
28
- # Use compgen to check if the glob expands to any files
29
- if compgen -G "${{ inputs.report-path }}" > /dev/null 2>&1; then
+ if ls ${{ inputs.report-path }} 1>/dev/null 2>&1; then
30
TESTS_RUN=$(grep -h "tests=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*tests="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
31
FAILURES=$(grep -h "failures=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*failures="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
32
ERRORS=$(grep -h "errors=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*errors="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
0 commit comments