From 5e869ade26ac1b5e7227721a1a96819306a1834b Mon Sep 17 00:00:00 2001 From: Shane Krueger Date: Thu, 16 Jan 2025 11:26:20 -0500 Subject: [PATCH] Fix CI (#1181) --- .github/workflows/codeql-analysis.yml | 4 ++-- .../Samples.AzureFunctions.csproj | 15 +++++++++++++++ samples/Samples.Complex/Samples.Complex.csproj | 1 + .../Samples.AzureFunctions.Tests.csproj | 10 ++++++++++ .../Samples.Complex.Tests.csproj | 2 +- .../Samples.Net48.Tests.csproj | 12 +++++++++++- tests/Samples.Tests/Samples.Tests.csproj | 3 ++- .../Transports.AspNetCore.Tests.csproj | 2 +- 8 files changed, 43 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 27bebdf8..09c3a92b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -17,9 +17,9 @@ jobs: uses: actions/checkout@v4 - name: Setup .NET SDK - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/samples/Samples.AzureFunctions/Samples.AzureFunctions.csproj b/samples/Samples.AzureFunctions/Samples.AzureFunctions.csproj index 5b5ac1ba..08004cd7 100644 --- a/samples/Samples.AzureFunctions/Samples.AzureFunctions.csproj +++ b/samples/Samples.AzureFunctions/Samples.AzureFunctions.csproj @@ -1,21 +1,36 @@ + net6.0 v4 $(NoWarn);IDE0060 + + + PreserveNewest + + + + + + + + + + + diff --git a/samples/Samples.Complex/Samples.Complex.csproj b/samples/Samples.Complex/Samples.Complex.csproj index b19f5c8c..123d4451 100644 --- a/samples/Samples.Complex/Samples.Complex.csproj +++ b/samples/Samples.Complex/Samples.Complex.csproj @@ -5,6 +5,7 @@ GraphQL.Samples.Server GraphQL.Samples.Server false + true diff --git a/tests/Samples.AzureFunctions.Tests/Samples.AzureFunctions.Tests.csproj b/tests/Samples.AzureFunctions.Tests/Samples.AzureFunctions.Tests.csproj index 995227d6..aa06fa95 100644 --- a/tests/Samples.AzureFunctions.Tests/Samples.AzureFunctions.Tests.csproj +++ b/tests/Samples.AzureFunctions.Tests/Samples.AzureFunctions.Tests.csproj @@ -11,4 +11,14 @@ + + + false + + + + + + + diff --git a/tests/Samples.Complex.Tests/Samples.Complex.Tests.csproj b/tests/Samples.Complex.Tests/Samples.Complex.Tests.csproj index 904fdfb2..1e8a4dd2 100644 --- a/tests/Samples.Complex.Tests/Samples.Complex.Tests.csproj +++ b/tests/Samples.Complex.Tests/Samples.Complex.Tests.csproj @@ -2,7 +2,7 @@ - net8.0;net6.0;netcoreapp3.1 + net8.0;net6.0 End to end tests for Samples.Server project diff --git a/tests/Samples.Net48.Tests/Samples.Net48.Tests.csproj b/tests/Samples.Net48.Tests/Samples.Net48.Tests.csproj index 4f26a83f..79a29256 100644 --- a/tests/Samples.Net48.Tests/Samples.Net48.Tests.csproj +++ b/tests/Samples.Net48.Tests/Samples.Net48.Tests.csproj @@ -2,7 +2,7 @@ - netcoreapp2.1 + net8.0 true @@ -22,4 +22,14 @@ + + + false + + + + + + + diff --git a/tests/Samples.Tests/Samples.Tests.csproj b/tests/Samples.Tests/Samples.Tests.csproj index 0917021e..655a6bcd 100644 --- a/tests/Samples.Tests/Samples.Tests.csproj +++ b/tests/Samples.Tests/Samples.Tests.csproj @@ -2,7 +2,7 @@ - net8.0;net6.0;netcoreapp2.1 + net8.0;net6.0 true @@ -11,6 +11,7 @@ End to end tests for sample projects + false diff --git a/tests/Transports.AspNetCore.Tests/Transports.AspNetCore.Tests.csproj b/tests/Transports.AspNetCore.Tests/Transports.AspNetCore.Tests.csproj index 53f661bb..c4d36b47 100644 --- a/tests/Transports.AspNetCore.Tests/Transports.AspNetCore.Tests.csproj +++ b/tests/Transports.AspNetCore.Tests/Transports.AspNetCore.Tests.csproj @@ -2,7 +2,7 @@ - netcoreapp2.1;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0 + net6.0;net7.0;net8.0 true