dev-test (#1)
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #1
This commit is contained in:
2025-10-28 14:18:11 +03:00
parent ee7a15efc2
commit 42ea93ff6a
2 changed files with 7 additions and 5 deletions

View File

@@ -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

View File

@@ -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();
}