From 27ebf38502c02495299ac7a25d3ba01edb8ead80 Mon Sep 17 00:00:00 2001 From: Austin Bennett Date: Thu, 23 Jul 2026 12:14:46 -0500 Subject: [PATCH] CI: print the job container's mounts while wiring up the test step --- .gitea/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index af5ef9b..d4ee70e 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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