From bd0d9fcc08953f6d32f5e411183e08e9ebf84709 Mon Sep 17 00:00:00 2001 From: "Cyril B." <53737317+Cykyrios@users.noreply.github.com> Date: Sat, 27 Sep 2025 21:13:45 +0200 Subject: [PATCH] Update CI and enable unit tests for Godot 4.5 --- .ci/build.gitlab-ci.yml | 22 ++++++++++++++++++---- .ci/docs.gitlab-ci.yml | 3 +-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.ci/build.gitlab-ci.yml b/.ci/build.gitlab-ci.yml index 5c2e4c2..d36eb00 100644 --- a/.ci/build.gitlab-ci.yml +++ b/.ci/build.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: registry.gitlab.com/cykyrios/godot-builder:4.5-beta4-editor +image: registry.gitlab.com/cykyrios/godot-builder:4.5-stable-editor stages: - test @@ -15,13 +15,27 @@ variables: run-tests: stage: test - # Tests cannot work until GdUnit4 supports Godot 4.5 (FoldableContainer, variadic functions, etc.). script: - - echo "Skipping tests until GdUnit4 supports Godot 4.5" + - mkdir -p addons + - rm -rf .submodules/gdUnit4/addons/gdUnit4/test + - mv -t addons/ .submodules/gdUnit4/addons/gdUnit4/ + - mv -t addons/ .submodules/godot_insim/addons/godot_insim/ + - godot --headless --import + - export GODOT_BIN=$(which godot) + - ./addons/gdUnit4/runtest.sh + --headless --ignoreHeadlessMode + -c -a test + artifacts: + when: always + name: "Test Report" + paths: + - reports/ + reports: + junit: reports/**/results.xml export-hub: stage: export - image: registry.gitlab.com/cykyrios/godot-builder:4.5-beta4-desktop + image: registry.gitlab.com/cykyrios/godot-builder:4.5-stable-desktop variables: DEPLOY: "release" rules: diff --git a/.ci/docs.gitlab-ci.yml b/.ci/docs.gitlab-ci.yml index 2c40b01..0f9e919 100644 --- a/.ci/docs.gitlab-ci.yml +++ b/.ci/docs.gitlab-ci.yml @@ -9,9 +9,8 @@ workflow: generate-docs: stage: docs - image: registry.gitlab.com/cykyrios/godot-builder:4.5-beta4-docs-generator + image: registry.gitlab.com/cykyrios/godot-builder:4.5-stable-docs-generator script: - - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y git - mkdir -p addons - mv -t addons/ .submodules/godot_insim/addons/godot_insim/ - mv -t addons/ .submodules/gdscript_xml_converter/addons/gdscript_xml_converter/ -- GitLab