fix: restore bashcov coverage instrumentation
CI / Load gitea-env.conf to pipeline env (push) Successful in 13s
ci-cucumber Cucumber tests
ci-bats Bats tests
ci-build Build complete
CI / Quality Gate (push) Successful in 2m18s
CI / Build & Push Artifact (push) Has been skipped

Add gem install bashcov and bashcov -- bats tests/ to generate
coverage data that bats-coverage.sh extracts from the volume.
This commit is contained in:
moilanik
2026-06-14 08:30:21 +03:00
parent 9f79e3733e
commit ce28d9ae41
+1 -1
View File
@@ -56,7 +56,7 @@ jobs:
docker run --rm \
-v bats-workspace:/data \
--entrypoint bash ${{ inputs.bats-image }} \
-c 'apk add -q lsof python3 jq curl ruby && cd /data && bats tests/' \
-c 'apk add -q lsof python3 jq curl ruby && cd /data && gem install bashcov -v 3.3.0 2>&1 | tail -1 && bashcov -- bats tests/' \
> "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1
BATS_EXIT=$?
bash .ci/.gitea/scripts/bats-coverage.sh bats-workspace "reports/${GITHUB_SHA:0:8}/bats"