dev-test #1

Merged
prtsie merged 6 commits from dev-test into main 2025-10-28 14:18:12 +03:00
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();
}