game-ci / unity-test-runner

Run tests for any Unity project
https://github.com/marketplace/actions/unity-test-runner
MIT License
206 stars 135 forks source link

packageMode workflow doesn't run playmode tests #259

Closed konraddysput closed 7 months ago

konraddysput commented 7 months ago

Bug description

I'm trying to add to my Unity package CICD support. My unity package follows Unity package patterns. All code is in the root directory, however based on your advices I also moved my code to a separated directory.

It looks like even if I follow all your advices and I think I'm doing that correctly, the test is stuck. I usually cancelled the workflow after ~20-~30 minutes.

The github action is defined here: https://github.com/backtrace-labs/backtrace-unity/blob/improvement/demo/.github/workflows/main.yml

The last workflow I've been using in the github action is from example available here: https://game.ci/docs/github/test-runner/#complete-example-testing-a-package

How to reproduce

  1. Clone https://github.com/backtrace-labs/backtrace-unity/ or create a Untiy package that follows Unity package pattern
  2. add workflow defined here: https://github.com/backtrace-labs/backtrace-unity/blob/improvement/demo/.github/workflows/main.yml
  3. Execute an actions

Additional details

I was trying manual steps + other folks however results stays the same.

konraddysput commented 7 months ago

I've modified my workflow based on the working example I found on Github available here: https://github.com/inworld-ai/inworld-unity/tree/main

Unfortunately, even if I copy paste solution it still doesn't work. I also verified other settings list asmdef file or package.json but the problem stays the same - I cannot run PlayMode tests

konraddysput commented 7 months ago

My issue was related to this issue: https://github.com/game-ci/unity-test-runner/issues/188#issuecomment-1666667823 Once I fixed that I could run my tests