fix: run project scenarios in quality gate

This commit is contained in:
2026-07-05 23:24:17 +02:00
parent fde2101690
commit ac0282716c
3 changed files with 82 additions and 29 deletions
+9 -6
View File
@@ -20,17 +20,17 @@ parser errors, and LLM-generated garbage before committing.
./tools/quality.sh
# Windows PowerShell
pwsh ./tools/quality.ps1
& ./tools/quality.ps1
```
### Fast changed-files mode
Only runs `gdformat` / `gdlint` on `.gd` files modified since the last commit.
The Godot parser check still runs on the whole project.
The Godot dependency check and all project scenarios still run.
```bash
./tools/quality.sh --changed
pwsh ./tools/quality.ps1 -Changed
& ./tools/quality.ps1 -Changed
```
### Auto-format (not part of the gate)
@@ -43,9 +43,10 @@ pwsh ./tools/quality.ps1 -Changed
| Check | Tool | What it detects |
|---|---|---|
| **gdformat** | `gdformat --check .` | Unformatted code (indentation, spacing) |
| **gdlint** | `gdlint .` | Lint violations (unused args, long lines, naming, etc.) |
| **godot-check** | `godot --headless --check-only` | Parser/syntax errors, missing dependencies |
| **gdformat** | Game-owned GDScript roots | Formatting without rewriting addons or demos |
| **gdlint** | Game-owned GDScript roots | Lint violations such as unused arguments and naming |
| **godot-check** | Headless definitions scenario | Parser errors and missing dependencies |
| **scenarios** | Every `tests/*_test.gd` script | Simulation, persistence, navigation, and presentation regressions |
| **gut** | `godot -s gut_cmdln.gd` | Failing GUT unit tests (only if addon exists) |
## Output
@@ -58,6 +59,7 @@ QUALITY RESULT: PASS
gdformat PASS
gdlint PASS
godot-check PASS
scenarios PASS
gut SKIPPED
Full logs:
@@ -72,6 +74,7 @@ QUALITY RESULT: FAIL
gdformat FAIL
gdlint FAIL
godot-check PASS
scenarios PASS
gut SKIPPED
res://simulation/SimNPC.gd:42 Unused argument 'delta'