How to run tests on build target with CI?

I’m trying to run unit tests on build targets when I push to my github repo to make sure my library works properly in actual builds, not just in editor. I’m using CircleCI to run EditMode tests utilizing Gableroux’s docker images. However, the same workflow fails when I try to run build target tests (WebGL or StandaloneLinux64) thanks to some Unity bug on Linux:

[0808/234504:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[0808/234504:ERROR:sandbox_linux.cc(308)] InitializeSandbox() called with multiple threads in process gpu-process

CircleCI also has a Windows Server 2019 that is available to run .Net 5.0 tests, but I couldn’t figure out how to get Unity installed on it.

Is there a way to get build target tests to run through CI? I’m willing to look at other CI services also if it helps.

Hi,
gableroux/unity3d docker images are now deprecated. Refer to https://game.ci/ for more details, documentation and links to example projects and new docker images.

Since you are on github, you might want to have a look at the github actions we developed as your experience will be a bit smoother than doing it on your own with CircleCI.

Also note that the activation license you used for gableroux/unity3d images won’t work anymore, so you will need to follow activation documentation again on https://game.ci but good news is this should be the last time you do it.

For reference, this question was also asked on gitlab here: