Skip to content

Commit bf435da

Browse files
committed
Add testing and fix documentation
1 parent 921637c commit bf435da

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.github/workflows/xunit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: XUnit unit test
2+
on: [push]
3+
jobs:
4+
XUnit-Unit-Test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Setup dotnet
9+
uses: actions/setup-dotnet@v1
10+
with:
11+
dotnet-version: '5.x'
12+
- name: Install dependencies
13+
run: dotnet restore
14+
- name: Build
15+
run: dotnet build
16+
- name: Test with the dotnet CLI
17+
run: dotnet test

Inertia.AspNetCore/Inertia.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net5.0</TargetFramework>
55
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
66
<PackageId>Inertia.AspNetCore</PackageId>
7-
<Version>0.0.4</Version>
7+
<Version>0.0.5</Version>
88
<Description>A simple AspNetCore adapter for Inertia.js. https://inertiajs.com</Description>
99
<Authors>Frédéric Choquette</Authors>
1010
<PackageProjectUrl>https://www.nuget.org/packages/Inertia.AspNetCore/</PackageProjectUrl>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Inertia.js ASP.Net Core Adapter
55

66
## Prerequisite
7-
1. .NET Core v5
7+
1. .NET Core v5 and later
88
2. An ASP.NET Core MVC project
99

1010
## Install
@@ -18,7 +18,7 @@ using Inertia.AspNetCore;
1818

1919
public void ConfigureServices(IServiceCollection services)
2020
{
21-
services.AddControllersWithViews().UserInertia();
21+
services.AddControllersWithViews().AddInertia();
2222
}
2323
```
2424
2. In your controller

0 commit comments

Comments
 (0)