Reviewed-on: #1 Co-authored-by: Andrew Kettel <andrew.kettel@gmail.com>
This commit was merged in pull request #1.
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
name: Verify Export Config
|
||||
on: workflow_dispatch
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Download export templates (cached)
|
||||
run: |
|
||||
mkdir -p .godot/export_templates
|
||||
wget -qO- https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_export_templates.tpz \
|
||||
| tar xzf - -C .godot/export_templates --strip-components=1
|
||||
- name: Validate project compiles cleanly
|
||||
run: godot --headless --quit-after-editor-checks 2>&1 | tee editor.log
|
||||
@@ -1,11 +0,0 @@
|
||||
name: GDScript Lint
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run gd-lint
|
||||
run: |
|
||||
pipx install godot-lint
|
||||
gd_lint src/ --error-on-warn --ignore=core/,tools/
|
||||
@@ -1,14 +0,0 @@
|
||||
name: Run Tests
|
||||
on: [push]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Godot CLI
|
||||
run: |
|
||||
wget -q https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.x86_64.zip
|
||||
unzip -qq *.zip -d /tmp/ && sudo cp "/tmp/Godot v4.3 stable/Godot_v4.3-stable_linux.x86_64" /usr/local/bin/godot && chmod +x /usr/local/bin/godot
|
||||
- name: Run headless tests
|
||||
run: |
|
||||
godot --headless --script res://tests/run_tests.gd --quit-after-tests
|
||||
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user