game-ci/unity-builder

Ability to generate sln/csproj in CI

emarcotte opened this issue · 4 comments

Context

I'd like to run some tools like StyleCop, which I'm able to invoke locally with dotnet build ./project.sln. I'm wondering if theres some way to use various Game-CI processes to bootstrap the SLN file so these tools could be used in a pipeline.

This may already be possible with the tools, but I haven't figured out how...

If you have the JetBrains Rider Editor package installed, you could try using unity-builder with buildMethod: Packages.Rider.Editor.RiderScriptEditor.SyncSolution

Does that work for you?

We dont currently use that (we're mostly using free/open source tools) but it sounds promising. Will look into it. I would assume it would generate references to DDL's that are only valid within the container runtime. Is there a way I would be able to run arbitrary tools inside the container afterwards?

At that point, I recommend using github actions inside the container.
That's what I do for running Sonar.
See my lint job:
https://github.com/finol-digital/Card-Game-Simulator/blob/11d7f6fa222ef001b142fdcbf3691b5eb50a03b5/.github/workflows/main.yml#L82

This seems promising! Thank you!