Skip to content

Releases: PereViader/UnityCliRunner

UnityCliRunner v0.1.1

Choose a tag to compare

@github-actions github-actions released this 01 Jul 22:11

feat: Bump version to 0.1.1

chore: Disable automated test workflow while working on it

refactor: Improve code structure by seplitting functionality better

refactor(editor): decouple command execution from UnityCliServer

  • Refactor UnityCliServer to act solely as the connection and thread manager.
  • Implement ICommandHandler interface and a command router using a dictionary.
  • Extract individual command handlers (Ping, Exit, Refresh, PollRefresh, Recompile, RunTests, PollTests, ExecuteMethod, PollExecute) to separate classes.
  • Extract shared helper utilities into CommandHelper and shared models into CommandTypes.

fix(editor): prevent duplicate test callback registrations
Fixes duplicate test failures in reports caused by multiple registrations
of the test callback instance on subsequent test runs.

Unity's native garbage collector destroys the TestRunnerApi ScriptableObject
because it is not referenced in native code, which causes s_TestRunnerApi == null
(using Unity's overloaded null check for destroyed objects) to return true on
later test runs. This caused RunTests() to repeatedly register the same
persistent s_Callbacks instance to the global CallbacksHolder.

We resolve this by:

  • Registering the s_Callbacks instance exactly once at domain reload/startup.
  • Instantiating a new TestRunnerApi instance inside RunTests() to execute the run without re-registering the callback.
  • Removing the temporary duplication checks inside the callback listener.

Refs: #24

refactor(cli): remove hardcoded unity versions and versionless fallback paths
Removes all hardcoded Unity versions and versionless fallback paths from the
Unity search paths array in both unitycli.sh and test.sh. The utility now
depends strictly on the editor version specified in the project metadata file.

Refs: #23

chore: add MIT license
Refs: #25

fix(test): execute unitycli.sh via bash to avoid permission errors

ci: scope UNITY_EMAIL and UNITY_PASSWORD env variables to activation step
Refs: #21

ci: add UNITY_EMAIL and UNITY_PASSWORD env variables to Test jobs
Refs: #21

ci: rename integration tests and integrate GameCI in GitHub Actions

  • Rename unitycli_integration_tests.sh to test.sh

  • Update README references

  • Restructure TestAndPublish.yml into CheckRelease, Test, and Publish jobs using GameCI Docker image

  • Add RunTests.yml for on-demand manual test runs

Refs: #21

docs: update installation instructions to use OpenUPM and Tools dropdown
Refs: #22

docs(readme): add status badges to README header
Adds status badges for CI workflow, Unity version, GitHub releases, and OpenUPM. The release badge links to the repository's GitHub release page.

Refs: #20

UnityCliRunner v0.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Jun 22:40
ci: add GitHub Actions release workflow and integrate versioning