Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More features #6

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
paths: ["apps/api/**"]

env:
DOTNET_VERSION: "8.0.x"
DOTNET_VERSION: "9.0.x"

defaults:
run:
Expand All @@ -31,16 +31,16 @@ jobs:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: 📦 Install dependencies
run: dotnet restore "Kijk.Api/Kijk.Api.csproj"
run: dotnet restore "src/Api/Api.csproj"

- name: 🧱 Build
run: dotnet build "Kijk.Api/Kijk.Api.csproj" -c Release --no-restore
run: dotnet build "src/Api/Api.csproj" -c Release --no-restore

- name: 🧹 Format
run: dotnet format --verify-no-changes --verbosity detailed --exclude 'Kijk.Api/Persistence/Migrations/'
run: dotnet format --verify-no-changes --verbosity detailed --exclude '**/Migrations/**'

- name: 🧪 Test
run: dotnet test "Kijk.Api/Kijk.Api.csproj" --configuration Release --no-build
run: dotnet test "src/Api/Api.csproj" --configuration Release --no-build

- name: 🔍 Audit
run: |
Expand Down
421 changes: 330 additions & 91 deletions apps/api/.editorconfig

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions apps/api/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
<Project>
<PropertyGroup>
<!-- Configure the version for all projects -->
<!-- <Version>0.5.0</Version>-->

<TargetFramework>net9.0</TargetFramework>
<LangVersion>preview</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<!-- Code Style and Analysis settings -->
<PropertyGroup>
<!-- TODO Should be enabled -->
<!-- <WarningsAsErrors>Nullable</WarningsAsErrors>-->
<!-- <CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>-->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>Recommended</AnalysisMode>
<NoWarn>$(NoWarn);1591;</NoWarn>
</PropertyGroup>

<ItemGroup Condition="'$(MSBuildProjectExtension)' != '.dcproj'">
<PackageReference Include="SonarAnalyzer.CSharp"/>
</ItemGroup>

</Project>
54 changes: 54 additions & 0 deletions apps/api/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!-- For more info on central package management go to https://devblogs.microsoft.com/nuget/introducing-central-package-management/ -->
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<!-- OpenApi-->
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.ApiDescription.Server" Version="9.0.0" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="7.1.0" />
<PackageVersion Include="AspNetCore.HealthChecks.NpgSql" Version="8.0.2" />
<PackageVersion Include="AspNetCore.HealthChecks.UI.Client" Version="8.0.1" />
<!-- Auth -->
<PackageVersion Include="Microsoft.Identity.Web" Version="3.4.0" />
<PackageVersion Include="Microsoft.Identity.Web.DownstreamApi" Version="3.4.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.0" />
<!-- Database -->
<PackageVersion Include="EFCore.NamingConventions" Version="9.0.0" />
<PackageVersion Include="EntityFrameworkCore.Exceptions.PostgreSQL" Version="8.1.3" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.1" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="9.0.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<!-- Logging -->
<PackageVersion Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageVersion Include="Serilog.Expressions" Version="5.0.0" />
<!-- Telemetry -->
<PackageVersion Include="Sentry.AspNetCore" Version="4.13.0" />
<PackageVersion Include="Sentry.Serilog" Version="4.13.0" />
<!-- Linting -->
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.3.0.106239">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<!-- Other -->
<PackageVersion Include="FluentValidation.AspNetCore" Version="11.3.0" />
<PackageVersion Include="Humanizer.Core" Version="2.14.1" />
<PackageVersion Include="Humanizer.Core.de" Version="2.14.1" />
<PackageVersion Include="MinVer" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="NetEscapades.AspNetCore.SecurityHeaders" Version="0.24.0" />
<PackageVersion Include="NetEscapades.EnumGenerators" Version="1.0.0-beta11" PrivateAssets="all" ExcludeAssets="runtime" />
</ItemGroup>
</Project>
77 changes: 0 additions & 77 deletions apps/api/Kijk.Api/Common/Extensions/ApplicationExtensions.cs

This file was deleted.

This file was deleted.

51 changes: 0 additions & 51 deletions apps/api/Kijk.Api/Common/Extensions/CurrentUserExtension.cs

This file was deleted.

22 changes: 0 additions & 22 deletions apps/api/Kijk.Api/Common/Extensions/EnumerableExtensions.cs

This file was deleted.

43 changes: 0 additions & 43 deletions apps/api/Kijk.Api/Common/Extensions/RateLimitExtension.cs

This file was deleted.

37 changes: 0 additions & 37 deletions apps/api/Kijk.Api/Common/GlobalExceptionHandler.cs

This file was deleted.

Loading
Loading