File tree 3 files changed +21
-16
lines changed 3 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 1
- name : XUnit unit test
1
+ name : XUnit
2
2
on : [push]
3
3
jobs :
4
- XUnit-Unit-Test :
4
+ test :
5
5
runs-on : ubuntu-latest
6
+ strategy :
7
+ matrix :
8
+ dotnet-version : [ '5.x', '6.x' ]
6
9
steps :
7
10
- uses : actions/checkout@v2
8
11
- name : Setup dotnet
9
12
uses : actions/setup-dotnet@v1
10
13
with :
11
- dotnet-version : ' 5.x'
14
+ dotnet-version : |
15
+ 5.x
16
+ 6.x
12
17
- name : Install dependencies
13
18
run : dotnet restore
14
19
- name : Build
15
- run : dotnet build
20
+ run : dotnet build --configuration Release --no-restore
16
21
- name : Test with the dotnet CLI
17
- run : dotnet test
22
+ run : dotnet test --no-restore --verbosity normal
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5.0</ TargetFramework >
4
+ <TargetFrameworks >net5.0;net6.0</ TargetFrameworks >
5
5
<Nullable >enable</Nullable >
6
6
7
7
<IsPackable >false</IsPackable >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5.0</ TargetFramework >
4
+ <TargetFrameworks >net5.0;net6.0</ TargetFrameworks >
5
5
<GenerateEmbeddedFilesManifest >true</GenerateEmbeddedFilesManifest >
6
6
<PackageId >Inertia.AspNetCore</PackageId >
7
7
<Version >0.0.5</Version >
17
17
18
18
<ItemGroup >
19
19
<FrameworkReference Include =" Microsoft.AspNetCore.App" />
20
- <EmbeddedResource Include =" Views\**\*" />
21
20
</ItemGroup >
22
-
23
- <ItemGroup >
24
- <Content Include =" Views\Shared\inertia.cshtml" />
25
- </ItemGroup >
26
-
21
+
27
22
<ItemGroup >
23
+ <EmbeddedResource Include =" Views\**\*" />
24
+ <Content Include =" Views\Shared\inertia.cshtml" />
28
25
<None Include =" ..\LICENSE" >
29
26
<Pack >True</Pack >
30
27
<PackagePath ></PackagePath >
31
28
</None >
32
29
</ItemGroup >
33
-
34
- <ItemGroup >
35
- <PackageReference Include =" Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version =" 5 .0.13 " />
30
+
31
+ <ItemGroup Condition = " '$(TargetFramework)' == 'net6.0' " >
32
+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version =" 6 .0.1 " />
36
33
</ItemGroup >
37
34
35
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net5.0' " >
36
+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version =" 5.0.13" />
37
+ </ItemGroup >
38
38
</Project >
You can’t perform that action at this time.
0 commit comments