fix: import Godot project before test runners

This commit is contained in:
goose
2026-10-01 16:28:28 -04:00
parent 6aa91f3500
commit 6eef939905
6 changed files with 96 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$root_dir"
GODOT_BIN="${GODOT_BIN:-/snap/bin/godot4}"
if [[ ! -x "$GODOT_BIN" ]]; then
GODOT_BIN="$(command -v godot4 || command -v godot || true)"
fi
: "${GODOT_BIN:?Set GODOT_BIN or install godot4/godot}"
"$GODOT_BIN" --headless --path . --import
+2
View File
@@ -12,6 +12,8 @@ if [[ -z "$GODOT_BIN" ]]; then
exit 2
fi
"$root_dir/scripts/godot-import.sh"
mkdir -p artifacts
log_path="artifacts/visual-check.log"
initial_capture_path="artifacts/visual-check.png"
+3
View File
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
"$script_dir/godot-import.sh"
GODOT_BIN="${GODOT_BIN:-/snap/bin/godot4}"
if [[ ! -x "$GODOT_BIN" ]]; then
GODOT_BIN="$(command -v godot4 || command -v godot || true)"
+3
View File
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
"$script_dir/godot-import.sh"
GODOT_BIN="${GODOT_BIN:-/snap/bin/godot4}"
if [[ ! -x "$GODOT_BIN" ]]; then
GODOT_BIN="$(command -v godot4 || command -v godot || true)"