Skip to content

Commit

Permalink
Sort coverage report by coverage percent (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
S-S-X authored Sep 7, 2021
1 parent d68c9eb commit c439382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ runs:
shell: bash
run: |
$HOME/.luarocks/bin/mineunit -r
OUT="$(awk -v p=0 '/^----/{p++;next}p==2{exit}p' luacov.report.out)"
OUT="$(awk -v p=0 '/^----/{p++;next}p==2{exit}p' luacov.report.out | sort -hrk4)"
OUT="${OUT//'%'/'%25'}";OUT="${OUT//$'\n'/'%0A'}"
echo "::set-output name=report::${OUT//$'\r'/'%0D'}"
- id: mineunit-coverage
Expand Down

0 comments on commit c439382

Please sign in to comment.