CI: print the job container's mounts while wiring up the test step
build-and-publish / build (push) Failing after 2s

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XXKjx7FNyRVAjU8dgB5KhN
This commit is contained in:
2026-07-23 12:14:46 -05:00
co-authored by Claude Opus 4.8
parent d630033148
commit c6202b15f5
+6 -1
View File
@@ -25,8 +25,13 @@ jobs:
- name: Test
run: |
set -euo pipefail
echo "--- hostname: $(hostname)"
echo "--- GITHUB_WORKSPACE: ${GITHUB_WORKSPACE:-unset}"
echo "--- pwd: $(pwd)"
echo "--- mounts of this job container:"
docker inspect "$(hostname)" --format '{{json .Mounts}}' || echo " cannot inspect self"
VOL=$(docker inspect "$(hostname)" \
--format '{{range .Mounts}}{{if eq .Destination "/workspace"}}{{.Name}}{{end}}{{end}}')
--format '{{range .Mounts}}{{if eq .Destination "/workspace"}}{{.Name}}{{end}}{{end}}' 2>/dev/null || true)
if [ -z "$VOL" ]; then
echo "could not find this job's workspace volume — refusing to skip the tests" >&2
exit 1