• Godot Help
  • Trying to run GUT tests without .godot folder fails

Hi,

I'm trying to setup CI for our Godot project. I've created a github workflow which runs the test for each pull request.
It works in principle, as in it starts to run the tests. But it fails with:

Debugger Break, Reason: 'Parser Error: Could not find type "Player" in the current scope.'
*Frame 0 - res://singletons/player_manager.gd:6 in function ''

Now when I run this locally it works just fine. So I figured it must have something to do with the .godot folder.
And indeed, if I delete the .godot folder locally and try again I run into the exact same error.

Is there anyway how I can circumvent this issue?
I reckon the .godot folder isn't tracked in version control for a reason.

The command I'm using to run the tests is this:

.\Godot_v${{ env.GODOT_VERSION }}-stable_win64.exe -d -s --display-driver headless --path ./project/ addons/gut/gut_cmdln.gd