16 lines
642 B
YAML
16 lines
642 B
YAML
name: Run Tests
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
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: Run headless gdunit4 tests
|
|
run: godot --headless --path . --script res://tests/run_tests.gd
|