Skip to content

Commit c439382

Browse files
authored
Sort coverage report by coverage percent (#8)
1 parent d68c9eb commit c439382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ runs:
111111
shell: bash
112112
run: |
113113
$HOME/.luarocks/bin/mineunit -r
114-
OUT="$(awk -v p=0 '/^----/{p++;next}p==2{exit}p' luacov.report.out)"
114+
OUT="$(awk -v p=0 '/^----/{p++;next}p==2{exit}p' luacov.report.out | sort -hrk4)"
115115
OUT="${OUT//'%'/'%25'}";OUT="${OUT//$'\n'/'%0A'}"
116116
echo "::set-output name=report::${OUT//$'\r'/'%0D'}"
117117
- id: mineunit-coverage

0 commit comments

Comments
 (0)