diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 72b8b756..1e03a96b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - os: [ ubuntu-latest, ubuntu-24.04-arm, macos-latest ] + os: [ ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest ] steps: - uses: actions/checkout@v5 diff --git a/tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs b/tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs index a780490e..5fff1467 100644 --- a/tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs +++ b/tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs @@ -37,14 +37,14 @@ public async Task ShouldCreateRssFeed() .WithTitle("1") .WithShortDescription("Short 1") .WithPreviewImageUrl("preview1") - .WithUpdatedDate(new DateTime(2022, 5, 1)) + .WithUpdatedDate(new DateTime(2022, 5, 1, 0, 0, 0, DateTimeKind.Utc)) .WithTags("C#", ".NET") .Build(); var blogPost2 = new BlogPostBuilder() .WithTitle("2") .WithShortDescription("**Short 2**") .WithPreviewImageUrl("preview2") - .WithUpdatedDate(new DateTime(2022, 6, 1)) + .WithUpdatedDate(new DateTime(2022, 6, 1, 0, 0, 0, DateTimeKind.Utc)) .Build(); await Repository.StoreAsync(blogPost1); await Repository.StoreAsync(blogPost2); @@ -115,14 +115,14 @@ public async Task ShouldReturnFullContentIfRequested() .WithTitle("1") .WithContent("Content1") .WithPreviewImageUrl("preview1") - .WithUpdatedDate(new DateTime(2022, 5, 1)) + .WithUpdatedDate(new DateTime(2022, 5, 1, 0, 0, 0, DateTimeKind.Utc)) .WithTags("C#", ".NET") .Build(); var blogPost2 = new BlogPostBuilder() .WithTitle("2") .WithContent("**Content 2**") .WithPreviewImageUrl("preview2") - .WithUpdatedDate(new DateTime(2022, 6, 1)) + .WithUpdatedDate(new DateTime(2022, 6, 1, 0, 0, 0, DateTimeKind.Utc)) .Build(); await Repository.StoreAsync(blogPost1); await Repository.StoreAsync(blogPost2); @@ -193,14 +193,14 @@ public async Task ShouldReturnNPostsIfRequested() .WithTitle("1") .WithShortDescription("Short 1") .WithPreviewImageUrl("preview1") - .WithUpdatedDate(new DateTime(2022, 5, 1)) + .WithUpdatedDate(new DateTime(2022, 5, 1, 0, 0, 0, DateTimeKind.Utc)) .WithTags("C#", ".NET") .Build(); var blogPost2 = new BlogPostBuilder() .WithTitle("2") .WithContent("**Content 2**") .WithPreviewImageUrl("preview2") - .WithUpdatedDate(new DateTime(2022, 6, 1)) + .WithUpdatedDate(new DateTime(2022, 6, 1, 0, 0, 0, DateTimeKind.Utc)) .Build(); await Repository.StoreAsync(blogPost1); await Repository.StoreAsync(blogPost2); @@ -261,14 +261,14 @@ public async Task ShouldRespectBlogPostsPerPage() .WithTitle("1") .WithShortDescription("Short 1") .WithPreviewImageUrl("preview1") - .WithUpdatedDate(new DateTime(2022, 5, 1)) + .WithUpdatedDate(new DateTime(2022, 5, 1, 0, 0, 0, DateTimeKind.Utc)) .WithTags("C#", ".NET") .Build(); var blogPost2 = new BlogPostBuilder() .WithTitle("2") .WithContent("**Content 2**") .WithPreviewImageUrl("preview2") - .WithUpdatedDate(new DateTime(2022, 6, 1)) + .WithUpdatedDate(new DateTime(2022, 6, 1, 0, 0, 0, DateTimeKind.Utc)) .Build(); await Repository.StoreAsync(blogPost1); await Repository.StoreAsync(blogPost2);