17 lines
671 B
YAML
17 lines
671 B
YAML
name: Validate Project
|
|
on: [push, pull_request]
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Godot stable
|
|
run: |
|
|
wget -q https://github.com/godotengine/godot/releases/download/4.7.2-stable/Godot_v4.7.2-stable_linux.x86_64.zip
|
|
unzip -qq *.zip -d /tmp/godot-install/
|
|
GODOT_BIN=$(find /tmp/godot-install/ -type f -name "Godot_*linux.x86_64" | head -1)
|
|
sudo cp "$GODOT_BIN" /usr/local/bin/godot && chmod +x /usr/local/bin/godot
|
|
- name: Check project opens cleanly headless
|
|
run: |
|
|
godot --headless --path . 2>&1 | tee editor.log || true
|