diff --git a/.github/workflows/csharp-tests.yml b/.github/workflows/csharp-tests.yml new file mode 100644 index 00000000..182c9983 --- /dev/null +++ b/.github/workflows/csharp-tests.yml @@ -0,0 +1,27 @@ +name: C# GSDK Tests + +on: + pull_request: + paths: + - 'csharp/**' + - '.github/workflows/csharp-tests.yml' + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + + - name: Build + run: dotnet build csharp/GSDK_CSharp_Standard.sln + + - name: Test + run: dotnet test csharp/Tests/Tests.csproj diff --git a/csharp/Tests/Tests.csproj b/csharp/Tests/Tests.csproj index 7c4f2b51..0c56ecb8 100644 --- a/csharp/Tests/Tests.csproj +++ b/csharp/Tests/Tests.csproj @@ -1,6 +1,6 @@  - net6.0 + net10.0 false diff --git a/csharp/WinTestRunnerGame/WinTestRunnerGame.csproj b/csharp/WinTestRunnerGame/WinTestRunnerGame.csproj index 61c1ea18..e60c27fe 100644 --- a/csharp/WinTestRunnerGame/WinTestRunnerGame.csproj +++ b/csharp/WinTestRunnerGame/WinTestRunnerGame.csproj @@ -1,7 +1,7 @@  Exe - net8.0 + net10.0 WinTestRunnerGame WinTestRunnerGame true diff --git a/csharp/WindowsTestAppCSharp/WindowsTestAppCSharp.csproj b/csharp/WindowsTestAppCSharp/WindowsTestAppCSharp.csproj index f7a422bb..f48d712c 100644 --- a/csharp/WindowsTestAppCSharp/WindowsTestAppCSharp.csproj +++ b/csharp/WindowsTestAppCSharp/WindowsTestAppCSharp.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.1 + net10.0