Skip to content

chore: add Unity editor validation and CI - #8

Merged
pes7 merged 17 commits into
masterfrom
refactor/editor-validation-ci
Jul 27, 2026
Merged

pes7 merged 17 commits into
masterfrom
refactor/editor-validation-ci

Conversation

@pes7

@pes7 pes7 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

This stacked PR completes the Unity Editor validation and CI module on top of refactor/input-system-migration.

Completed scope

  • adds ZoneUA.EditorValidation editor-only assembly
  • adds Zone UA -> Validation -> Validate Project
  • adds selected-prefab validation
  • adds a validation results window with asset selection/ping support
  • adds build preprocessing that blocks builds on validation errors
  • adds batchmode entry point ZoneUA.EditorValidation.ZoneUAValidationCli.Run
  • writes Logs/ZoneUAValidation.json
  • validates missing .meta files and missing/duplicate GUIDs
  • validates asmdef JSON and duplicate assembly names
  • validates the central Player InputActionAsset and all required actions
  • validates empty Build Settings scene configuration as a warning
  • validates world generation fallback biome and biome lists
  • validates definition IDs and missing biome terrain presentation
  • validates NPC prefab Health, Death and FactionMember setup
  • validates weapon prefab Weapon setup
  • validates PlayerInputRouter.actions assignment
  • adds editor tests for report severity semantics
  • adds a Python repository validator that runs without Unity
  • adds GitHub Actions repository integrity job
  • adds opt-in GameCI EditMode test job with Library caching
  • adds Docs/EDITOR_VALIDATION_CI.md

Stacking

Base branch: refactor/input-system-migration

Merge after PR #7, or retarget after the earlier stacked PRs are merged.

GitHub configuration

The repository integrity job runs immediately without secrets.

To enable Unity EditMode tests, configure repository variables:

  • RUN_UNITY_TESTS=true
  • UNITY_VERSION=6000.5.5f1

And GameCI secrets:

  • UNITY_LICENSE
  • UNITY_EMAIL
  • UNITY_PASSWORD

Important migration note

ProjectSettings/ProjectVersion.txt still declares Unity 2022.2.8f1. The repository validator reports this as a warning. The Unity 6000.5.5f1 version and revision must be produced by opening and saving the project in that editor; this PR does not invent the revision hash.

Validation required locally

  • project compiles in Unity 6000.5.5f1
  • validation menu opens and runs
  • asset ping buttons select the correct objects
  • full validation report contains expected current migration warnings
  • a deliberately broken prefab is reported
  • a validation error blocks a development build
  • batchmode validation writes JSON and returns failure on errors
  • python scripts/validate_unity_repo.py passes after resolving reported repository issues
  • editor validation tests pass
  • existing EditMode suite passes
  • GameCI job passes after variables and licence secrets are configured

The code scope is complete. This PR remains draft because Unity compilation, local build preprocessing and GameCI execution cannot be run in this environment.

@pes7
pes7 force-pushed the refactor/input-system-migration branch from 0f3b88e to ebedef4 Compare July 27, 2026 20:19
@pes7
pes7 force-pushed the refactor/editor-validation-ci branch from 29e8ca9 to c5437c3 Compare July 27, 2026 20:22
@pes7
pes7 changed the base branch from refactor/input-system-migration to master July 27, 2026 20:22
@pes7
pes7 marked this pull request as ready for review July 27, 2026 20:22
@pes7
pes7 merged commit b2b1279 into master Jul 27, 2026
2 checks passed
@pes7
pes7 deleted the refactor/editor-validation-ci branch July 28, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant