Skip to content

Commit 1f51c66

Browse files
committed
build: update table formatting
1 parent 1dbb549 commit 1f51c66

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/scripts/run_tests_coverage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ compare_cov() {
121121
new_cov_value="$2"
122122

123123
if [ "$old_cov_value" == 0 ]; then
124-
new_cov_percentage=$(awk "BEGIN {printf \"%.1f\", $new_cov_value*100}")
124+
new_cov_percentage=$(awk "BEGIN {printf \"%.2f\", $new_cov_value*100}")
125125
echo "\$\\\\color{green}+$new_cov_percentage\\\\%\$"
126126
else
127-
percentage_change=$(awk "BEGIN {printf \"%.1f\", (($new_cov_value - $old_cov_value) / $old_cov_value) * 100}")
127+
percentage_change=$(awk "BEGIN {printf \"%.2f\", (($new_cov_value - $old_cov_value) / $old_cov_value) * 100}")
128128
color="green"
129129
sign=""
130130
if [ $(awk "BEGIN {if ($percentage_change > 0) print 1; else print 0}") -eq 1 ]; then
@@ -192,7 +192,7 @@ main() {
192192
cov_change_functions=$(compare_cov "$old_functions_cov" "$pkg_functions_cov")
193193
cov_change_lines=$(compare_cov "$old_lines_cov" "$pkg_lines_cov")
194194

195-
pkg_cov="| $pkg_statements_cov_fraction $cov_change_statements) | $pkg_branches_cov_fraction $cov_change_branches) | $pkg_functions_cov_fraction $cov_change_functions) | $pkg_lines_cov_fraction $cov_change_lines) |"
195+
pkg_cov="| $pkg_statements_cov_fraction <br> $cov_change_statements | $pkg_branches_cov_fraction <br> $cov_change_branches | $pkg_functions_cov_fraction <br> $cov_change_functions | $pkg_lines_cov_fraction <br> $cov_change_lines |"
196196

197197
pkg_url="https://github.com/${github_repo}/tree/${github_ref}/${package}"
198198
pkg_link="<a href="$pkg_url">$pkg</a>"

lib/node_modules/@stdlib/assert/is-strict-equal/lib/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*
2828
* - In contrast to the strict equality operator `===`, `-0` and `+0` are distinguishable.
2929
*
30-
*
3130
* @param {*} a - first input value
3231
* @param {*} b - second input value
3332
* @returns {boolean} boolean indicating whether two arguments are strictly equal

0 commit comments

Comments
 (0)