| 1 |
name: Test Godot project |
| 2 |
description: Run the test Godot project. |
| 3 |
|
| 4 |
inputs: |
| 5 |
bin: |
| 6 |
description: The path to the Godot executable |
| 7 |
required: true |
| 8 |
|
| 9 |
runs: |
| 10 |
using: composite |
| 11 |
steps: |
| 12 |
|
| 13 |
- name: Download test project |
| 14 |
shell: sh |
| 15 |
run: | |
| 16 |
wget https://github.com/godotengine/regression-test-project/archive/4.0.zip |
| 17 |
unzip 4.0.zip |
| 18 |
mv "regression-test-project-4.0" "test_project" |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
- name: Open and close editor (Headless) |
| 23 |
shell: sh |
| 24 |
run: | |
| 25 |
xvfb-run ${{ inputs.bin }} --headless --import --path test_project 2>&1 | tee sanitizers_log.txt || true |
| 26 |
misc/scripts/check_ci_log.py sanitizers_log.txt |
| 27 |
|
| 28 |
- name: Open and close editor (Vulkan) |
| 29 |
shell: sh |
| 30 |
run: | |
| 31 |
xvfb-run ${{ inputs.bin }} --audio-driver Dummy --import --path test_project 2>&1 | tee sanitizers_log.txt || true |
| 32 |
misc/scripts/check_ci_log.py sanitizers_log.txt |
| 33 |
|
| 34 |
- name: Open and close editor (GLES3) |
| 35 |
shell: sh |
| 36 |
run: | |
| 37 |
DRI_PRIME=0 xvfb-run ${{ inputs.bin }} --audio-driver Dummy --rendering-driver opengl3 --import --path test_project 2>&1 | tee sanitizers_log.txt || true |
| 38 |
misc/scripts/check_ci_log.py sanitizers_log.txt |
| 39 |
|
| 40 |
|
| 41 |
- name: Run project |
| 42 |
shell: sh |
| 43 |
run: | |
| 44 |
xvfb-run ${{ inputs.bin }} 40 --audio-driver Dummy --path test_project 2>&1 | tee sanitizers_log.txt || true |
| 45 |
misc/scripts/check_ci_log.py sanitizers_log.txt |