Skip to content

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

Merged
Dimitris Gkanatsios (dgkanatsios) merged 3 commits into
mainfrom
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
Dimitris Gkanatsios (dgkanatsios) merged 3 commits into
mainfrom
copilot/run-unit-tests-on-pr

Conversation

Copilot AI commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

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

Copilot AI commented Mar 3, 2026

Copy link
Copy Markdown
Contributor Author

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
Dimitris Gkanatsios (dgkanatsios) marked this pull request as ready for review March 3, 2026 18:25
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