diff --git a/.drone.yml b/.drone.yml index 827d3ff..750e90c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,11 +3,11 @@ type: docker name: "Backend" steps: -# - name: test -# image: mcr.microsoft.com/dotnet/sdk:8.0 -# commands: -# - dotnet build -# - dotnet test +- name: test + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet build + - dotnet test - name: publish image: plugins/docker diff --git a/SchengenVisaApi/Program.cs b/SchengenVisaApi/Program.cs index 136ddd0..32076a1 100644 --- a/SchengenVisaApi/Program.cs +++ b/SchengenVisaApi/Program.cs @@ -12,12 +12,14 @@ public class Program { var builder = WebApplication.CreateBuilder(args); builder.RegisterServices(); + builder.Services.AddHealthChecks(); var app = builder.Build(); await HandleMigrationKey(args, app); app.ConfigurePipelineRequest(); + app.UseHealthChecks("/health"); await app.RunAsync(); }