action.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Test Godot project
  2. description: Run the test Godot project.
  3. inputs:
  4. bin:
  5. description: The path to the Godot executable
  6. required: true
  7. runs:
  8. using: composite
  9. steps:
  10. # Download and extract zip archive with project, folder is renamed to be able to easy change used project
  11. - name: Download test project
  12. shell: sh
  13. run: |
  14. wget https://github.com/godotengine/regression-test-project/archive/4.0.zip
  15. unzip 4.0.zip
  16. mv "regression-test-project-4.0" "test_project"
  17. # Editor is quite complicated piece of software, so it is easy to introduce bug here.
  18. - name: Open and close editor (Vulkan)
  19. shell: sh
  20. run: |
  21. xvfb-run ${{ inputs.bin }} --audio-driver Dummy --editor --quit --path test_project 2>&1 | tee sanitizers_log.txt || true
  22. misc/scripts/check_ci_log.py sanitizers_log.txt
  23. - name: Open and close editor (GLES3)
  24. shell: sh
  25. run: |
  26. DRI_PRIME=0 xvfb-run ${{ inputs.bin }} --audio-driver Dummy --rendering-driver opengl3 --editor --quit --path test_project 2>&1 | tee sanitizers_log.txt || true
  27. misc/scripts/check_ci_log.py sanitizers_log.txt
  28. # Run test project
  29. - name: Run project
  30. shell: sh
  31. run: |
  32. xvfb-run ${{ inputs.bin }} 40 --audio-driver Dummy --path test_project 2>&1 | tee sanitizers_log.txt || true
  33. misc/scripts/check_ci_log.py sanitizers_log.txt