Skip to content

Commit

Permalink
Print Godot logs on failure in unittests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GsLogiMaker committed May 16, 2024
1 parent 64422d2 commit d12973a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ jobs:
# for direct-scene users to check this file if you have issues
result-output-file: "test_results.xml"

- name: 📄 Print test results
- name: 📄 Print logs
if: failure() && steps.run-godot-tests.outcome != 'success'
run: echo "$(cat test_results.xml)"
run: echo "$(cat logs/godot.log)"


update_nightly:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ addons/glecs/rust/glecs/Cargo.lock
addons/gut/gui/GutSceneTheme.tres
unittest_log.xml
test_results.xml

logs/*
3 changes: 3 additions & 0 deletions logs/godot.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org
OpenGL API 3.3.0 NVIDIA 550.67 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce GTX 1650

4 changes: 4 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ run/main_scene="res://main.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility")
config/icon="res://icon.svg"

[debug]

file_logging/log_path="res://logs/godot.log"

[editor_plugins]

enabled=PackedStringArray("res://addons/glecs/plugin.cfg", "res://addons/gut/plugin.cfg")
Expand Down

0 comments on commit d12973a

Please sign in to comment.