diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bad756c..55234d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,4 +16,4 @@ jobs: lfs: true submodules: true - run: sh scripts/test.sh - timeout-minutes: 5 + timeout-minutes: 1 diff --git a/godot/tests/UnitTest.gd b/godot/tests/UnitTest.gd index 99895ce..31f385d 100644 --- a/godot/tests/UnitTest.gd +++ b/godot/tests/UnitTest.gd @@ -3,5 +3,8 @@ extends GutTest func assert_contains_exact(arr: Array, items: Array): assert_eq(arr.size(), items.size()) + assert_contains_all(arr, items) + +func assert_contains_all(arr: Array, items: Array): for i in items: assert_has(arr, i) diff --git a/scripts/build-channel.sh b/scripts/build-channel.sh old mode 100644 new mode 100755 index 41e646d..69ab5cd --- a/scripts/build-channel.sh +++ b/scripts/build-channel.sh @@ -3,5 +3,5 @@ CHANNEL=${CHANNEL:-$1} cd godot -mkdir -v -p build/$CHANNEL -godot --export-release $CHANNEL \ No newline at end of file +mkdir -v -p ../build/$CHANNEL +godot --export-release -headless $CHANNEL \ No newline at end of file diff --git a/scripts/prepare-templates.sh b/scripts/prepare-templates.sh new file mode 100755 index 0000000..decf4b8 --- /dev/null +++ b/scripts/prepare-templates.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +VERSION=$1 + +TARGET=~/.local/share/godot/export_templates/${VERSION}.stable + +if [ -f "$TARGET" ]; then + echo "Templates already installed" + exit +fi + +mkdir -v -p ~/.local/share/godot/export_templates +mv /root/.local/share/godot/export_templates/${VERSION}.stable $TARGET \ No newline at end of file