debug echo, ongelman eristys
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 24s
acc-tests Link to Cucumber reports
CI Feature / Cucumber tests (push) Successful in 55s
unit-tests Link to Bats reports
CI Feature / Bats tests (push) Successful in 1m57s
CI Feature / Report Summary (push) Successful in 6s

This commit is contained in:
moilanik
2026-06-18 10:06:27 +03:00
parent b0fd72b8e3
commit 36b8af6cf3
2 changed files with 21 additions and 0 deletions
+8
View File
@@ -7,11 +7,19 @@ REPORT_DIR="${1:-}"
COVERAGE_DIR="$REPORT_DIR/coverage"
echo "DEBUG[bats-coverage]: CWD=$(pwd)" >&2
echo "DEBUG[bats-coverage]: coverage dir exists? $([ -d coverage ] && echo YES || echo NO)" >&2
if [ -d coverage ]; then
echo "DEBUG[bats-coverage]: files in coverage/: $(ls coverage/ 2>/dev/null | wc -l)" >&2
echo "DEBUG[bats-coverage]: coverage/index.html exists? $([ -f coverage/index.html ] && echo YES || echo NO)" >&2
mkdir -p "$COVERAGE_DIR"
cp -a coverage/. "$COVERAGE_DIR/"
echo "DEBUG[bats-coverage]: copied to $COVERAGE_DIR" >&2
fi
echo "DEBUG[bats-coverage]: target $COVERAGE_DIR/index.html exists? $([ -f "$COVERAGE_DIR/index.html" ] && echo YES || echo NO)" >&2
if [ -d "$COVERAGE_DIR" ] && [ ! -f "$COVERAGE_DIR/index.html" ]; then
SHA8="${GITHUB_SHA:0:8}"
{