Skip to content

ci: run Unity EditMode tests via game-ci#138

Open
VPDPersonal wants to merge 1 commit into
mainfrom
ci/asp-55-unity-editmode-tests
Open

ci: run Unity EditMode tests via game-ci#138
VPDPersonal wants to merge 1 commit into
mainfrom
ci/asp-55-unity-editmode-tests

Conversation

@VPDPersonal

@VPDPersonal VPDPersonal commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • ✅ New unity-tests job in tests.yml: game-ci/unity-test-runner@v4 over the Aspid.FastTools project, EditMode only, Unity version auto-detected from ProjectVersion.txt (currently 6000.4.0f1).
  • Library/ is cached on packages-lock.json + ProjectVersion.txt with a bare fallback key, so runs after the first don't reimport the project from scratch.
  • 📝 Test results are uploaded as an artifact and reported as a Unity EditMode results check via githubToken.

Notes for review

⚠️ The job fails until the UNITY_LICENSE secret is added (owner-only step). Activation for a personal license:

  1. Run the game-ci/request-activation-file step once (or locally: Unity -batchmode -createManualActivationFile -quit) to get Unity_v6000.4.0f1.alf.
  2. Upload the .alf at https://license.unity3d.com/manual, choose Personal → download the .ulf.
  3. Repo → Settings → Secrets and variables → Actions → new secret UNITY_LICENSE with the entire file contents of the .ulf.
  4. Re-run this PR's checks — the job should go green (first run is slow: docker image pull + full import; later runs hit the Library cache).

Linked issues

Closes ASP-55

🇷🇺 Описание на русском

Summary

  • ✅ Новый job unity-tests в tests.yml: game-ci/unity-test-runner@v4 над проектом Aspid.FastTools, только EditMode, версия Unity автоопределяется из ProjectVersion.txt (сейчас 6000.4.0f1).
  • Library/ кэшируется по packages-lock.json + ProjectVersion.txt с bare-fallback-ключом, так что прогоны после первого не импортируют проект с нуля.
  • 📝 Результаты тестов выгружаются артефактом и репортятся отдельным check'ом Unity EditMode results через githubToken.

Notes for review

⚠️ Job падает, пока не добавлен секрет UNITY_LICENSE (шаг только для владельца). Активация personal-лицензии:

  1. Один раз выполнить шаг game-ci/request-activation-file (или локально: Unity -batchmode -createManualActivationFile -quit) — получится Unity_v6000.4.0f1.alf.
  2. Загрузить .alf на https://license.unity3d.com/manual, выбрать Personal → скачать .ulf.
  3. Repo → Settings → Secrets and variables → Actions → новый секрет UNITY_LICENSE с полным содержимым файла .ulf.
  4. Перезапустить чеки этого PR — job должен позеленеть (первый прогон медленный: докер-образ + полный импорт; дальше работает кэш Library).

Adds a unity-tests job to tests.yml: game-ci/unity-test-runner@v4
over the Aspid.FastTools project (EditMode, version auto-detected
from ProjectVersion.txt), Library/ cached on packages-lock +
ProjectVersion, results uploaded as an artifact and reported as a
check. Requires the UNITY_LICENSE secret (personal .ulf) — the job
fails until it is added (ASP-55).

Co-Authored-By: Claude <noreply@anthropic.com>
@VPDPersonal VPDPersonal added type: ci CI / build pipeline changes status: work-in-progress Draft / not ready for review area: ci CI / GitHub Actions workflows labels Jul 7, 2026
@VPDPersonal VPDPersonal marked this pull request as ready for review July 7, 2026 11:07
@github-actions github-actions Bot added status: needs-review Ready for review and removed status: work-in-progress Draft / not ready for review labels Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI / GitHub Actions workflows status: needs-review Ready for review type: ci CI / build pipeline changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant