Skip to content

Commit

Permalink
create minimal markdown report if to large
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Jun 28, 2024
1 parent adbbfb2 commit 6d8bc22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ if [ "$MODE" == "combine" ]; then
find artifacts/ -name tool_test_output.json -exec sh -c 'planemo merge_test_reports "$@" upload/tool_test_output.json' sh {} +
# create html and markdown reports
[ "$PLANEMO_HTML_REPORT" == "true" ] && planemo test_reports upload/tool_test_output.json --test_output upload/tool_test_output.html
[ "$PLANEMO_MD_REPORT" == "true" ] && planemo test_reports upload/tool_test_output.json --test_output_markdown upload/tool_test_output.md
[ "$PLANEMO_MD_REPORT" == "true" ] && (
planemo test_reports upload/tool_test_output.json --test_output_markdown upload/tool_test_output.md
if [ $(stat -f %z "upload/tool_test_output.md") -gt 1048576 ]; then
planemo test_reports upload/tool_test_output.json --test_output_minimal_markdown upload/tool_test_output.md
fi
)
# get statistics
jq '.["tests"][]["data"]["status"]' upload/tool_test_output.json | sed 's/"//g' | sort | uniq -c > statistics.txt
fi
Expand Down

0 comments on commit 6d8bc22

Please sign in to comment.