Updating gitea workers and adding gdunit4 and fake test.
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 +1,15 @@
|
||||
name: Run Tests
|
||||
on: [push]
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Godot CLI
|
||||
- name: Install Godot stable
|
||||
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
|
||||
unzip -qq *.zip -d /tmp/godot-install/
|
||||
sudo cp "/tmp/godot-install/Godot v4.3-stable/Godot_v4.3-stable_linux.x86_64" /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
|
||||
|
||||
@@ -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.3-stable/Godot_v4.3-stable_linux.x86_64.zip
|
||||
unzip -qq *.zip -d /tmp/godot-install/
|
||||
sudo cp "/tmp/godot-install/Godot v4.3-stable/Godot_v4.3-stable_linux.x86_64" /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