fix CI
CI / Unit tests (push) Successful in 27s
CI / Integration tests + coverage (push) Failing after 10s

This commit is contained in:
2026-09-19 05:56:52 -09:00
parent aa3cfef2b3
commit 343a759d7d
+6 -1
View File
@@ -50,10 +50,15 @@ trap teardown EXIT
trap 'exit 130' INT trap 'exit 130' INT
trap 'exit 143' TERM trap 'exit 143' TERM
# Build vibe-app explicitly: `run --build integration-test` only builds the named service
# (not its dependencies), and integration-test is image-only, so compose hands bake an
# empty definition ("failed to find target default") and vibe-app never gets built or started.
"${compose[@]}" --ansi never --progress plain build vibe-app
# `run` returns the test container's own exit code; `up --abort-on-container-exit` can leak # `run` returns the test container's own exit code; `up --abort-on-container-exit` can leak
# the app's SIGTERM exit (143) during teardown instead. # the app's SIGTERM exit (143) during teardown instead.
status=0 status=0
"${compose[@]}" --ansi never --progress plain run --build --rm integration-test || status=$? "${compose[@]}" --ansi never run --rm integration-test || status=$?
if [[ -n "${COVERAGE:-}" ]]; then if [[ -n "${COVERAGE:-}" ]]; then
# SIGTERM is what makes Cloverage write its report, so stop (not kill) the app and pull # SIGTERM is what makes Cloverage write its report, so stop (not kill) the app and pull