File tree Expand file tree Collapse file tree 8 files changed +43
-6
lines changed
Samples.AzureFunctions.Tests
Transports.AspNetCore.Tests Expand file tree Collapse file tree 8 files changed +43
-6
lines changed Original file line number Diff line number Diff line change 17
17
uses : actions/checkout@v4
18
18
19
19
- name : Setup .NET SDK
20
- uses : actions/setup-dotnet@v3
20
+ uses : actions/setup-dotnet@v4
21
21
with :
22
- dotnet-version : 7 .0.x
22
+ dotnet-version : 8 .0.x
23
23
source-url : https://nuget.pkg.github.com/graphql-dotnet/index.json
24
24
env :
25
25
NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
+
2
3
<PropertyGroup >
3
4
<TargetFramework >net6.0</TargetFramework >
4
5
<AzureFunctionsVersion >v4</AzureFunctionsVersion >
5
6
<NoWarn >$(NoWarn);IDE0060</NoWarn >
6
7
</PropertyGroup >
8
+
7
9
<ItemGroup >
8
10
<PackageReference Include =" Microsoft.Azure.Functions.Extensions" Version =" 1.1.0" />
9
11
<PackageReference Include =" Microsoft.NET.Sdk.Functions" Version =" 4.6.0" />
10
12
</ItemGroup >
13
+
11
14
<ItemGroup >
12
15
<ProjectReference Include =" ..\..\src\Transports.AspNetCore\Transports.AspNetCore.csproj" />
13
16
<ProjectReference Include =" ..\..\src\Ui.GraphiQL\Ui.GraphiQL.csproj" />
14
17
<ProjectReference Include =" ..\Samples.Schemas.Chat\Samples.Schemas.Chat.csproj" />
15
18
</ItemGroup >
19
+
16
20
<ItemGroup >
17
21
<None Update =" host.json" >
18
22
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
19
23
</None >
20
24
</ItemGroup >
25
+
26
+ <!-- In-Process .NET 6 Azure Functions can't be built on Linux -->
27
+ <ItemGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" >
28
+ <Compile Remove =" **/*.cs" />
29
+ <PackageReference Remove =" Microsoft.Azure.Functions.Extensions" />
30
+ <PackageReference Remove =" Microsoft.NET.Sdk.Functions" />
31
+ <ProjectReference Remove =" ..\..\src\Transports.AspNetCore\Transports.AspNetCore.csproj" />
32
+ <ProjectReference Remove =" ..\..\src\Ui.GraphiQL\Ui.GraphiQL.csproj" />
33
+ <ProjectReference Remove =" ..\Samples.Schemas.Chat\Samples.Schemas.Chat.csproj" />
34
+ </ItemGroup >
35
+
21
36
</Project >
Original file line number Diff line number Diff line change 5
5
<AssemblyName >GraphQL.Samples.Server</AssemblyName >
6
6
<RootNamespace >GraphQL.Samples.Server</RootNamespace >
7
7
<IsPackable >false</IsPackable >
8
+ <SuppressTfmSupportBuildWarnings >true</SuppressTfmSupportBuildWarnings >
8
9
</PropertyGroup >
9
10
10
11
<ItemGroup >
Original file line number Diff line number Diff line change 11
11
<ProjectReference Include =" ..\Samples.Tests\Samples.Tests.csproj" />
12
12
</ItemGroup >
13
13
14
+ <!-- Skip this project on Linux -->
15
+ <PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" >
16
+ <IsTestProject >false</IsTestProject >
17
+ </PropertyGroup >
18
+ <ItemGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" >
19
+ <Compile Remove =" **/*.cs" />
20
+ <ProjectReference Remove =" ..\..\samples\Samples.AzureFunctions\Samples.AzureFunctions.csproj" />
21
+ <ProjectReference Remove =" ..\Samples.Tests\Samples.Tests.csproj" />
22
+ </ItemGroup >
23
+
14
24
</Project >
Original file line number Diff line number Diff line change 2
2
<Import Project =" ../../Tests.props" />
3
3
4
4
<PropertyGroup >
5
- <TargetFrameworks >net8.0;net6.0;netcoreapp3.1 </TargetFrameworks >
5
+ <TargetFrameworks >net8.0;net6.0</TargetFrameworks >
6
6
<Description >End to end tests for Samples.Server project</Description >
7
7
</PropertyGroup >
8
8
Original file line number Diff line number Diff line change 2
2
<Import Project =" ../../Tests.props" />
3
3
4
4
<PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" >
5
- <TargetFramework >netcoreapp2.1 </TargetFramework >
5
+ <TargetFramework >net8.0 </TargetFramework > <!-- netcoreapp2.1 not testable on Linux anymore -- >
6
6
<SuppressTfmSupportBuildWarnings >true</SuppressTfmSupportBuildWarnings >
7
7
</PropertyGroup >
8
8
<PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'" >
22
22
<ProjectReference Include =" ..\Samples.Tests\Samples.Tests.csproj" />
23
23
</ItemGroup >
24
24
25
+ <!-- Skip this project on Linux -->
26
+ <PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" >
27
+ <IsTestProject >false</IsTestProject >
28
+ </PropertyGroup >
29
+ <ItemGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" >
30
+ <Compile Remove =" **/*.cs" />
31
+ <ProjectReference Remove =" ..\..\samples\Samples.Net48\Samples.Net48.csproj" />
32
+ <ProjectReference Remove =" ..\Samples.Tests\Samples.Tests.csproj" />
33
+ </ItemGroup >
34
+
25
35
</Project >
Original file line number Diff line number Diff line change 2
2
<Import Project =" ../../Tests.props" />
3
3
4
4
<PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" >
5
- <TargetFrameworks >net8.0;net6.0;netcoreapp2.1 </TargetFrameworks >
5
+ <TargetFrameworks >net8.0;net6.0</TargetFrameworks >
6
6
<SuppressTfmSupportBuildWarnings >true</SuppressTfmSupportBuildWarnings >
7
7
</PropertyGroup >
8
8
<PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'" >
11
11
</PropertyGroup >
12
12
<PropertyGroup >
13
13
<Description >End to end tests for sample projects</Description >
14
+ <IsTestProject >false</IsTestProject >
14
15
</PropertyGroup >
15
16
16
17
<ItemGroup >
Original file line number Diff line number Diff line change 2
2
<Import Project =" ../../Tests.props" />
3
3
4
4
<PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'" >
5
- <TargetFrameworks >netcoreapp2.1;netcoreapp3.1;net5.0; net6.0;net7.0;net8.0</TargetFrameworks >
5
+ <TargetFrameworks >net6.0;net7.0;net8.0</TargetFrameworks >
6
6
<SuppressTfmSupportBuildWarnings >true</SuppressTfmSupportBuildWarnings >
7
7
</PropertyGroup >
8
8
<PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'" >
You can’t perform that action at this time.
0 commit comments