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

update ci ,update framework version #17

Merged
merged 1 commit into from
Sep 8, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build
run: dotnet build --no-restore NetCorePal.Template.csproj
- name: Test
run: dotnet test --no-build --verbosity normal NetCorePal.Template.csproj
run: dotnet test --verbosity normal template/ABC.Template.sln
- name: Pack NuGet
run: dotnet pack -c Release --version-suffix alpha`date +%y%m%d%H%M` -o "./" NetCorePal.Template.csproj
- name: Push NuGet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Build
run: dotnet build --no-restore NetCorePal.Template.csproj
- name: Test
run: dotnet test --no-build --verbosity normal NetCorePal.Template.csproj
run: dotnet test --verbosity normal template/ABC.Template.sln
- name: Pack NuGet
run: dotnet pack -c Release -o "./" NetCorePal.Template.csproj
- name: Push NuGet
Expand Down
2 changes: 1 addition & 1 deletion eng/versions.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.5.1</VersionPrefix>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion template/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<NetCorePalVersion>2.0.0-preview.1.2409021337</NetCorePalVersion>
<NetCorePalVersion>2.0.0-preview.1.2409071627</NetCorePalVersion>
<FrameworkVersion>8.0.0</FrameworkVersion>
<ExtensionsVersion>8.0.0</ExtensionsVersion>
<EntityFrameworkVersion>8.0.0</EntityFrameworkVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using NetCorePal.Extensions.Primitives;
using ABC.Template.Domain.AggregatesModel.OrderAggregate;
using NetCorePal.Extensions.Primitives;

namespace ABC.Template.Web.Application.Commands
{
public record class OrderPaidCommand(long OrderId) : ICommand;
public record class OrderPaidCommand(OrderId OrderId) : ICommand;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ABC.Template.Infrastructure.Repositories;
using ABC.Template.Domain.AggregatesModel.OrderAggregate;
using ABC.Template.Infrastructure.Repositories;
using NetCorePal.Extensions.Primitives;

namespace ABC.Template.Web.Application.Commands
Expand Down
5 changes: 3 additions & 2 deletions template/src/ABC.Template.Web/Controllers/DemoController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ABC.Template.Web.Application.IntegrationEventHandlers;
using ABC.Template.Domain.AggregatesModel.OrderAggregate;
using ABC.Template.Web.Application.IntegrationEventHandlers;
using FluentValidation;
using MediatR;
using Microsoft.AspNetCore.Mvc;
Expand Down Expand Up @@ -33,7 +34,7 @@ public Task<ResponseData> Validator(ValidatorRequest request)
[Route("event")]
public async Task<ResponseData<long>> Event([FromServices] IIntegrationEventPublisher publisher)
{
await publisher.PublishAsync(new OrderPaidIntegrationEvent(55));
await publisher.PublishAsync(new OrderPaidIntegrationEvent(new OrderId(55)));
return 55L.AsResponseData();
}

Expand Down
2 changes: 1 addition & 1 deletion template/test/ABC.Template.Web.Tests/DemoTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task Json_ReadFromJson_Test()
Assert.NotNull(responseData);
Assert.Equal(DateTime.Parse("2021-08-31 15:00:00"), responseData.Data.Time);
Assert.Equal("myName", responseData.Data.Name);
Assert.Equal(5, responseData.Data.Id);
Assert.Equal(5, responseData.Data.Id.Id);
}

[Fact]
Expand Down
Loading