Skip to content

Add CI workflow to run C# GSDK unit tests on PRs and update projects to net10.0#191

Merged
dgkanatsios merged 3 commits intomainfrom
copilot/run-unit-tests-on-pr
Mar 3, 2026
Merged

Add CI workflow to run C# GSDK unit tests on PRs and update projects to net10.0#191
dgkanatsios merged 3 commits intomainfrom
copilot/run-unit-tests-on-pr

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

What this PR does / why we need it:

Adds a GitHub Actions workflow that runs C# GSDK unit tests on pull requests when csharp/** files are modified, and updates C# application/test projects from EOL .NET versions to .NET 10.

  • Sets up .NET 10.0 SDK in the CI workflow
  • Builds GSDK_CSharp_Standard.sln, then runs dotnet test on csharp/Tests/Tests.csproj
  • Also triggers on changes to the workflow file itself
  • Scopes GITHUB_TOKEN to contents: read
  • Updates Tests/Tests.csproj from net6.0 to net10.0
  • Updates WinTestRunnerGame/WinTestRunnerGame.csproj from net8.0 to net10.0
  • Updates WindowsTestAppCSharp/WindowsTestAppCSharp.csproj from netcoreapp2.1 to net10.0
  • Keeps GSDK_CSharp_Standard.csproj on netstandard2.0 since it's a NuGet library package requiring broad consumer compatibility

Special notes for your reviewer:

All 17 existing unit tests pass on .NET 10. The GSDK library itself remains on netstandard2.0 to maintain compatibility for NuGet consumers across different .NET versions.

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: dgkanatsios <8256138+dgkanatsios@users.noreply.github.com>
Copilot AI changed the title [WIP] Add unit tests execution for C# GSDK modifications Add CI workflow to run C# GSDK unit tests on PRs Mar 3, 2026
@dgkanatsios
Copy link
Contributor

@copilot .NET 6 is EOL, can you update C# projects to net10?

Co-authored-by: dgkanatsios <8256138+dgkanatsios@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 3, 2026

@copilot .NET 6 is EOL, can you update C# projects to net10?

Updated all C# application/test projects to net10.0 and the workflow to use .NET 10 SDK in commit 8a4fcb1. The GSDK library itself remains on netstandard2.0 since it's a NuGet package that needs broad consumer compatibility.

Updated projects:

  • Tests/Tests.csproj: net6.0net10.0
  • WinTestRunnerGame/WinTestRunnerGame.csproj: net8.0net10.0
  • WindowsTestAppCSharp/WindowsTestAppCSharp.csproj: netcoreapp2.1net10.0

All 17 tests pass on .NET 10.

Copilot AI changed the title Add CI workflow to run C# GSDK unit tests on PRs Add CI workflow to run C# GSDK unit tests on PRs and update projects to net10.0 Mar 3, 2026
@dgkanatsios dgkanatsios marked this pull request as ready for review March 3, 2026 18:25
@dgkanatsios dgkanatsios merged commit 3905183 into main Mar 3, 2026
2 checks passed
@dgkanatsios dgkanatsios deleted the copilot/run-unit-tests-on-pr branch March 3, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants