Skip to content

Commit 9bdcaf3

Browse files
committed
Added more testing and support more versions
1 parent bf435da commit 9bdcaf3

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

.github/workflows/xunit.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
name: XUnit unit test
1+
name: XUnit
22
on: [push]
33
jobs:
4-
XUnit-Unit-Test:
4+
test:
55
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
dotnet-version: [ '5.x', '6.x' ]
69
steps:
710
- uses: actions/checkout@v2
811
- name: Setup dotnet
912
uses: actions/setup-dotnet@v1
1013
with:
11-
dotnet-version: '5.x'
14+
dotnet-version: |
15+
5.x
16+
6.x
1217
- name: Install dependencies
1318
run: dotnet restore
1419
- name: Build
15-
run: dotnet build
20+
run: dotnet build --configuration Release --no-restore
1621
- name: Test with the dotnet CLI
17-
run: dotnet test
22+
run: dotnet test --no-restore --verbosity normal

Inertia.AspNetCore.Tests/Inertia.AspNetCore.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
55
<Nullable>enable</Nullable>
66

77
<IsPackable>false</IsPackable>
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
55
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
66
<PackageId>Inertia.AspNetCore</PackageId>
77
<Version>0.0.5</Version>
@@ -17,22 +17,22 @@
1717

1818
<ItemGroup>
1919
<FrameworkReference Include="Microsoft.AspNetCore.App" />
20-
<EmbeddedResource Include="Views\**\*" />
2120
</ItemGroup>
22-
23-
<ItemGroup>
24-
<Content Include="Views\Shared\inertia.cshtml" />
25-
</ItemGroup>
26-
21+
2722
<ItemGroup>
23+
<EmbeddedResource Include="Views\**\*"/>
24+
<Content Include="Views\Shared\inertia.cshtml"/>
2825
<None Include="..\LICENSE">
2926
<Pack>True</Pack>
3027
<PackagePath></PackagePath>
3128
</None>
3229
</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"/>
3633
</ItemGroup>
3734

35+
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
36+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="5.0.13"/>
37+
</ItemGroup>
3838
</Project>

0 commit comments

Comments
 (0)