-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from thangchung/feat/upgrade-aspire
.NET Aspire upgrade
- Loading branch information
Showing
119 changed files
with
6,440 additions
and
981 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-jammy | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy | ||
|
||
# Install make | ||
RUN apt update && apt install -y make | ||
# RUN apt-get update && | ||
# RUN apt-get update && apt-get install -y make | ||
|
||
## https://github.com/dotnet/aspire/blob/main/docs/using-latest-daily.md | ||
RUN dotnet workload update --skip-sign-check --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json \ | ||
&& dotnet workload install aspire --skip-sign-check --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json | ||
|
||
# RUN dotnet workload install aspire | ||
RUN dotnet workload install aspire |
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
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,46 @@ | ||
name: .NET Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feat/* | ||
|
||
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: Install .NET Aspire workload | ||
run: dotnet workload install aspire | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --no-restore | ||
|
||
- name: Test | ||
run: dotnet test --no-build --settings tests.runsettings --results-directory ./coverage | ||
|
||
- name: Publish coverage | ||
uses: irongut/[email protected] | ||
with: | ||
filename: coverage/**/coverage.cobertura.xml | ||
badge: true | ||
format: markdown | ||
|
||
- name: Add Coverage PR Comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md |
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 |
---|---|---|
|
@@ -350,4 +350,5 @@ MigrationBackup/ | |
.ionide/ | ||
.idea/ | ||
tmp/ | ||
.env | ||
.env | ||
coverage/ |
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,45 +1,77 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0"/> | ||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0" PrivateAssets="all"/> | ||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0"/> | ||
<PackageVersion Include="Microsoft.Extensions.Http" Version="8.0.0"/> | ||
<PackageVersion Include="Microsoft.OpenApi" Version="1.6.10"/> | ||
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0"/> | ||
<PackageVersion Include="Yarp.ReverseProxy" Version="2.1.0"/> | ||
<PackageVersion Include="MediatR" Version="12.2.0"/> | ||
<PackageVersion Include="FluentValidation.AspNetCore" Version="11.3.0" /> | ||
<PackageVersion Include="MassTransit" Version="8.1.2" /> | ||
<PackageVersion Include="MassTransit.RabbitMQ" Version="8.1.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<!-- <PackageVersion Include="Aspire.Hosting" Version="8.0.0-preview.3.23614.7" /> | ||
<PackageVersion Include="Aspire.Hosting.Dapr" Version="8.0.0-preview.3.23614.7" /> --> | ||
<PackageVersion Include="Aspire.Hosting" Version="8.0.0-preview.1.23557.2" /> | ||
|
||
<!-- <PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="8.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.ServiceDiscovery" Version="8.0.0-preview.3.23614.7" /> | ||
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0-alpha.1" /> | ||
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0-alpha.1" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.6.0-beta.2" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="1.6.0-beta.2" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.Http" Version="1.6.0-beta.2" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.Runtime" Version="1.5.1" /> --> | ||
|
||
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="8.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.ServiceDiscovery" Version="8.0.0-preview.1.23557.2" /> | ||
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0-alpha.1" /> | ||
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0-alpha.1" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.6.0-beta.2" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="1.6.0-beta.2" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.Http" Version="1.6.0-beta.2" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.Runtime" Version="1.5.1" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> | ||
<AspnetVersion>8.0.5</AspnetVersion> | ||
<MicrosoftExtensionsVersion>8.4.0</MicrosoftExtensionsVersion> | ||
<EfVersion>8.0.4</EfVersion> | ||
<AspireVersion>8.0.1</AspireVersion> | ||
<AspirantVersion>0.0.4</AspirantVersion> | ||
<HealthCheckVersion>8.0.1</HealthCheckVersion> | ||
<AspVersioningVersion>8.1.0</AspVersioningVersion> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="Microsoft.AspNet.WebApi.Core" Version="5.3.0" /> | ||
<PackageVersion Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" /> | ||
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.6" /> | ||
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="$(AspnetVersion)" /> | ||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="$(EfVersion)" PrivateAssets="all" /> | ||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EfVersion)" /> | ||
<PackageVersion Include="Microsoft.OpenApi" Version="1.6.10" /> | ||
<PackageVersion Include="Asp.Versioning.Http" Version="$(AspVersioningVersion)" /> | ||
<PackageVersion Include="Asp.Versioning.Mvc.ApiExplorer" Version="$(AspVersioningVersion)" /> | ||
<PackageVersion Include="Asp.Versioning.Http.Client" Version="$(AspVersioningVersion)" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="MediatR" Version="12.2.0" /> | ||
<PackageVersion Include="FluentValidation.AspNetCore" Version="11.3.0" /> | ||
<PackageVersion Include="FluentValidation" Version="11.9.1" /> | ||
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" /> | ||
<PackageVersion Include="Riok.Mapperly" Version="3.5.1" ExcludeAssets="runtime" PrivateAssets="all" /> | ||
<PackageVersion Include="MassTransit" Version="8.1.2" /> | ||
<PackageVersion Include="MassTransit.RabbitMQ" Version="8.1.2" /> | ||
<PackageVersion Include="Marten.AspNetCore" Version="7.10.1" /> | ||
<PackageVersion Include="Marten" Version="7.10.1" /> | ||
<PackageVersion Include="Yarp.ReverseProxy" Version="2.1.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- Aspire --> | ||
<PackageVersion Include="Aspire.Hosting" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspire.Hosting.AppHost" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspire.Hosting.PostgreSQL" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspire.Hosting.RabbitMQ" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspire.Hosting.Redis" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspire.Hosting.Testing" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="Aspirant.Hosting" Version="$(AspirantVersion)" /> | ||
<PackageVersion Include="Aspirant.Hosting.Yarp" Version="$(AspirantVersion)" /> | ||
<PackageVersion Include="Aspirant.Hosting.Testing" Version="$(AspirantVersion)" /> | ||
<PackageVersion Include="Fredi.Aspire.Hosting.WireMock" Version="0.0.1" /> | ||
<!-- Aspire Custom Extensions --> | ||
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="$(MicrosoftExtensionsVersion)" /> | ||
<PackageVersion Include="Microsoft.Extensions.ServiceDiscovery" Version="$(AspireVersion)" /> | ||
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.8.1" /> | ||
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.8.1" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.8.1" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.Http" Version="1.8.1" /> | ||
<PackageVersion Include="OpenTelemetry.Instrumentation.Runtime" Version="1.8.0" /> | ||
<PackageVersion Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.3.0-beta.2" /> | ||
<PackageVersion Include="Azure.Monitor.OpenTelemetry.AspNetCore" Version="1.2.0-beta.4" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- Healthchecks --> | ||
<PackageVersion Include="AspNetCore.HealthChecks.Uris" Version="$(HealthCheckVersion)" /> | ||
<PackageVersion Include="AspNetCore.HealthChecks.NpgSql" Version="$(HealthCheckVersion)" /> | ||
<PackageVersion Include="AspNetCore.HealthChecks.Rabbitmq" Version="$(HealthCheckVersion)" /> | ||
<PackageVersion Include="AspNetCore.HealthChecks.Redis" Version="$(HealthCheckVersion)" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- Testing --> | ||
<PackageVersion Include="coverlet.collector" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> | ||
<PackageVersion Include="xunit" Version="2.5.3" /> | ||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.3" /> | ||
<PackageVersion Include="MSTest" Version="3.2.0" /> | ||
<PackageVersion Include="ReportGenerator" Version="5.3.6" /> | ||
|
||
</ItemGroup> | ||
</Project> |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<IsAspireHost>true</IsAspireHost> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Aspire.Hosting" /> | ||
<PackageReference Include="Aspire.Hosting.AppHost" /> | ||
<PackageReference Include="Aspire.Hosting.PostgreSQL" /> | ||
<PackageReference Include="Aspire.Hosting.Redis" /> | ||
<PackageReference Include="Aspire.Hosting.RabbitMQ" /> | ||
<PackageReference Include="Aspirant.Hosting" /> | ||
<PackageReference Include="Aspirant.Hosting.Yarp" /> | ||
<PackageReference Include="Yarp.ReverseProxy" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="AspNetCore.HealthChecks.NpgSql" /> | ||
<PackageReference Include="AspNetCore.HealthChecks.Rabbitmq" /> | ||
<PackageReference Include="AspNetCore.HealthChecks.Redis" /> | ||
<PackageReference Include="AspNetCore.HealthChecks.Uris" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\order-summary\CoffeeShop.OrderSummary.csproj" /> | ||
<ProjectReference Include="..\product-api\CoffeeShop.ProductApi.csproj" /> | ||
<ProjectReference Include="..\counter-api\CoffeeShop.CounterApi.csproj" /> | ||
<ProjectReference Include="..\barista-api\CoffeeShop.BaristaApi.csproj" /> | ||
<ProjectReference Include="..\kitchen-api\CoffeeShop.KitchenApi.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.