-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3699b35
commit 984d407
Showing
12 changed files
with
91 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: .NET | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature/** | ||
pull_request: | ||
branches: | ||
- main | ||
- feature/** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Restore dependencies | ||
run: | | ||
cd src/ | ||
dotnet restore EFCore.TableMapping.sln | ||
- name: Build | ||
run: | | ||
cd src/ | ||
dotnet build EFCore.TableMapping.sln --no-restore | ||
- name: Test | ||
run: | | ||
cd src/ | ||
dotnet test EFCore.TableMapping.sln --no-build --verbosity normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,3 @@ | |
SLN_FILE="./src/EFCore.TableMapping.sln" | ||
|
||
dotnet build "$SLN_FILE" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,3 @@ | |
SLN_FILE="./src/EFCore.TableMapping.sln" | ||
|
||
dotnet clean "$SLN_FILE" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<LangVersion>11.0</LangVersion> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<LangVersion>12.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Label="NuGet.Packages"> | ||
<!-- Swagger --> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.10" /> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" /> | ||
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0" /> | ||
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" /> | ||
<!-- EntityFramework Core --> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.10" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.10"> | ||
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.0" /> | ||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.10"> | ||
</PackageVersion> | ||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.10" /> | ||
</PackageVersion> | ||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
6 changes: 6 additions & 0 deletions
6
src/EFCore.TableMapping.Shared/EFCore.TableMapping.Shared.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
src/EFCore.TableMapping.WebApi.Tpc/EFCore.TableMapping.WebApi.Tpc.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<ItemGroup Label="NuGet.Packages"> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="[6.5.0, )" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Label="Project.References"> | ||
<ProjectReference Include="..\EFCore.TableMapping.Shared\EFCore.TableMapping.Shared.csproj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="NetClean" BeforeTargets="Clean"> | ||
<Message Text="Deleting directories and files..."/> | ||
<RemoveDir Directories="bin"/> | ||
<RemoveDir Directories="obj"/> | ||
<Delete Files="db_tpc.sqlite" /> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\EFCore.TableMapping.Shared\EFCore.TableMapping.Shared.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
12 changes: 8 additions & 4 deletions
12
src/EFCore.TableMapping.WebApi.Tph/EFCore.TableMapping.WebApi.Tph.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<ItemGroup Label="NuGet.Packages"> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="[6.5.0, )" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Label="Project.References"> | ||
<ProjectReference Include="..\EFCore.TableMapping.Shared\EFCore.TableMapping.Shared.csproj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="NetClean" BeforeTargets="Clean"> | ||
<Message Text="Deleting directories and files..."/> | ||
<RemoveDir Directories="bin"/> | ||
<RemoveDir Directories="obj"/> | ||
<Delete Files="db_tph.sqlite" /> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\EFCore.TableMapping.Shared\EFCore.TableMapping.Shared.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
12 changes: 8 additions & 4 deletions
12
src/EFCore.TableMapping.WebApi.Tpt/EFCore.TableMapping.WebApi.Tpt.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<ItemGroup Label="NuGet.Packages"> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="[6.5.0, )" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Label="Project.References"> | ||
<ProjectReference Include="..\EFCore.TableMapping.Shared\EFCore.TableMapping.Shared.csproj" /> | ||
</ItemGroup> | ||
|
||
<Target Name="NetClean" BeforeTargets="Clean"> | ||
<Message Text="Deleting directories and files..."/> | ||
<RemoveDir Directories="bin"/> | ||
<RemoveDir Directories="obj"/> | ||
<Delete Files="db_tpt.sqlite" /> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\EFCore.TableMapping.Shared\EFCore.TableMapping.Shared.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |