Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ChilliCream/graphql-platform
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 11.3.0
Choose a base ref
...
head repository: ChilliCream/graphql-platform
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 11.3.1
Choose a head ref
  • 15 commits
  • 145 files changed
  • 4 contributors

Commits on Jun 14, 2021

  1. Fixed sonar build

    michaelstaib committed Jun 14, 2021
    Copy the full SHA
    6497d4d View commit details
  2. Copy the full SHA
    bfdff2a View commit details
  3. Disabled flaky tests

    michaelstaib committed Jun 14, 2021
    Copy the full SHA
    605f93a View commit details
  4. Removed more flaky tests

    michaelstaib committed Jun 14, 2021
    Copy the full SHA
    96630fb View commit details
  5. Detect and fix broken links (#3746)

    * Detect dead links
    
    * Fix broken links
    
    * Link using the absolute path
    
    * Fix dead blog post links (in theory)
    
    * Use slug field as slug
    
    * Support validation of non inline links
    
    * Be more explicit about header discovery
    
    * Fix some more links
    
    * Fix broken links
    
    * Split gathering and validation of links into two plugins
    
    * Use reporter for output
    tobias-tengler authored Jun 14, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e083860 View commit details

Commits on Jun 24, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3087c38 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0280c7d View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ca63f21 View commit details
  4. Copy the full SHA
    fa9a0f7 View commit details
  5. Copy the full SHA
    7144952 View commit details
  6. Copy the full SHA
    306e6a6 View commit details
  7. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d9fb698 View commit details

Commits on Jun 25, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6616f91 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    da07279 View commit details

Commits on Jun 28, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3b86b65 View commit details
Showing with 7,490 additions and 7,372 deletions.
  1. +3 −3 .build/Build.Environment.cs
  2. +14 −10 .build/Build.PublicApiAnalyzer.cs
  3. +15 −5 .build/Build.Sonar.cs
  4. +12 −1 .build/Build.Tests.cs
  5. +21 −0 .build/Build.cs
  6. +1 −4 .build/Helpers.cs
  7. +43 −0 .devops/deploy-website.yml
  8. +30 −0 .devops/test-website.yml
  9. +16 −0 .github/workflows/check-public-api.yml
  10. +3 −0 .gitignore
  11. +4 −2 .nuke/build.schema.json
  12. +72 −22 API-Baselines.md
  13. +7 −10 COMMUNITY.md
  14. +0 −19 scripts/diff-shipped-api.ps1
  15. +0 −35 scripts/display-unshipped-api.ps1
  16. +0 −51 scripts/mark-api-shipped.ps1
  17. +0 −1 src/GreenDonut/src/Core/PublicAPI.Unshipped.txt
  18. +0 −1 src/HotChocolate/AspNetCore/src/AspNetCore.Authorization/PublicAPI.Unshipped.txt
  19. +0 −3 src/HotChocolate/AspNetCore/src/AspNetCore/PublicAPI.Unshipped.txt
  20. +0 −1 src/HotChocolate/Core/src/Execution/PublicAPI.Unshipped.txt
  21. +0 −1 src/HotChocolate/Core/src/Fetching/PublicAPI.Unshipped.txt
  22. +0 −1 src/HotChocolate/Core/src/Subscriptions.InMemory/PublicAPI.Unshipped.txt
  23. +0 −1 src/HotChocolate/Core/src/Subscriptions.Redis/PublicAPI.Unshipped.txt
  24. +0 −1 src/HotChocolate/Core/src/Subscriptions/PublicAPI.Unshipped.txt
  25. +0 −1 src/HotChocolate/Core/src/Types.Scalars.Upload/PublicAPI.Unshipped.txt
  26. +13 −0 src/HotChocolate/Core/src/Types/Extensions/ResolverContextExtensions.cs
  27. +18 −0 src/HotChocolate/Core/src/Types/Properties/TypeResources.Designer.cs
  28. +9 −0 src/HotChocolate/Core/src/Types/Properties/TypeResources.resx
  29. +1 −0 src/HotChocolate/Core/src/Types/PublicAPI.Unshipped.txt
  30. +21 −10 src/HotChocolate/Core/src/Types/Resolvers/CodeGeneration/ArgumentHelper.cs
  31. +3 −1 src/HotChocolate/Core/src/Types/Resolvers/CodeGeneration/ArgumentKind.cs
  32. +8 −11 src/HotChocolate/Core/src/Types/Resolvers/Expressions/ExpressionHelper.cs
  33. +36 −0 src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/GetClaimsPrincipalCompiler.cs
  34. +13 −3 src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/GetFieldSelectionCompiler.cs
  35. +7 −4 src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/GetGlobalStateCompiler.cs
  36. +31 −0 src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/GetPathCompiler.cs
  37. +2 −0 src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ParameterCompilerFactory.cs
  38. +1 −1 src/HotChocolate/Core/src/Types/Resolvers/Expressions/ResolveCompiler.cs
  39. +4 −11 src/HotChocolate/Core/src/Types/Types/ObjectType.cs
  40. +6 −1 src/HotChocolate/Core/src/Types/Utilities/NullableHelper.cs
  41. +0 −1 src/HotChocolate/Core/src/Validation/PublicAPI.Unshipped.txt
  42. +45 −0 src/HotChocolate/Core/test/Types.Tests/CodeFirstTests.cs
  43. +38 −0 src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs
  44. +70 −7 src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverPropertyGeneratorTests.cs
  45. +2 −0 ...te/Core/test/Types.Tests/Resolvers/__snapshots__/ResolverCompilerTests.SchemaIntegrationTest.snap
  46. +48 −37 src/HotChocolate/Core/test/Types.Tests/Types/PaginationTests.cs
  47. +461 −413 src/HotChocolate/Core/test/Types.Tests/Types/SubscriptionTypeTests.cs
  48. +10 −0 ...te/Core/test/Types.Tests/__snapshots__/CodeFirstTests.Default_Type_Resolution_Shall_Be_Exact.snap
  49. +26 −0 .../test/Types.Tests/__snapshots__/CodeFirstTests.Default_Type_Resolution_Shall_Be_Exact_Schema.snap
  50. +5 −0 ...ocolate/Core/test/Types.Tests/__snapshots__/ResolverContextStateExtensionTests.GetUserClaims.snap
  51. +49 −2 src/HotChocolate/Core/test/Utilities/TestHelper.cs
  52. +0 −17 src/HotChocolate/Data/src/Data/Projections/HotChocolate.Types.Selections.csproj
  53. +0 −1 src/HotChocolate/Data/src/Data/PublicAPI.Unshipped.txt
  54. +0 −1 src/HotChocolate/Data/src/EntityFramework/PublicAPI.Unshipped.txt
  55. +0 −1 src/HotChocolate/Filters/src/Types.Filters/PublicAPI.Unshipped.txt
  56. +0 −1 src/HotChocolate/Filters/src/Types.Sorting/PublicAPI.Unshipped.txt
  57. +0 −1 src/HotChocolate/Language/src/Language.SyntaxTree/PublicAPI.Unshipped.txt
  58. +0 −1 src/HotChocolate/Language/src/Language.Utf8/PublicAPI.Unshipped.txt
  59. +0 −1 src/HotChocolate/Language/src/Language.Visitors/PublicAPI.Unshipped.txt
  60. +0 −1 src/HotChocolate/Language/src/Language/PublicAPI.Unshipped.txt
  61. +0 −1 src/HotChocolate/MongoDb/src/Data/PublicAPI.Unshipped.txt
  62. +0 −1 src/HotChocolate/PersistedQueries/src/PersistedQueries.FileSystem/PublicAPI.Unshipped.txt
  63. +0 −1 src/HotChocolate/PersistedQueries/src/PersistedQueries.InMemory/PublicAPI.Unshipped.txt
  64. +0 −1 src/HotChocolate/PersistedQueries/src/PersistedQueries.Redis/PublicAPI.Unshipped.txt
  65. +0 −1 src/HotChocolate/Spatial/src/Data/PublicAPI.Unshipped.txt
  66. +0 −1 src/HotChocolate/Spatial/src/Types/PublicAPI.Unshipped.txt
  67. +0 −1 src/HotChocolate/Stitching/src/Stitching.Abstractions/PublicAPI.Unshipped.txt
  68. +0 −1 src/HotChocolate/Stitching/src/Stitching.Redis/PublicAPI.Unshipped.txt
  69. +0 −1 src/HotChocolate/Stitching/src/Stitching/PublicAPI.Unshipped.txt
  70. +32 −28 src/HotChocolate/Stitching/test/Stitching.Tests/Integration/FederatedRedisSchemaTests.cs
  71. +86 −352 src/HotChocolate/Utilities/HotChocolate.Utilities.sln
  72. +0 −1 src/HotChocolate/Utilities/src/Utilities.Introspection/PublicAPI.Unshipped.txt
  73. +0 −1 src/HotChocolate/Utilities/src/Utilities/PublicAPI.Unshipped.txt
  74. +16 −13 src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionClientTests.cs
  75. +2 −2 src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionDeserializerTests.cs
  76. +35 −30 ...est/Utilities.Introspection.Tests/__snapshots__/IntrospectionClientTests.Download_Schema_AST.snap
  77. +36 −31 ...est/Utilities.Introspection.Tests/__snapshots__/IntrospectionClientTests.Download_Schema_SDL.snap
  78. 0 {scripts → src}/PublicAPI.empty.txt
  79. +4 −1 src/StrawberryShake/Client/src/Core/PublicAPI.Unshipped.txt
  80. +22 −3 src/StrawberryShake/Client/src/Core/Serialization/UuidSerializer.cs
  81. +5 −0 src/StrawberryShake/Client/src/Core/ThrowHelper.cs
  82. +0 −1 src/StrawberryShake/Client/src/Persistence.SQLite/PublicAPI.Unshipped.txt
  83. +0 −1 src/StrawberryShake/Client/src/Transport.Http/PublicAPI.Unshipped.txt
  84. +0 −1 src/StrawberryShake/Client/src/Transport.InMemory/PublicAPI.Unshipped.txt
  85. +0 −1 src/StrawberryShake/Client/src/Transport.WebSockets/PublicAPI.Unshipped.txt
  86. +58 −0 src/StrawberryShake/Client/test/Core.Tests/Serialization/UuidSerializerTests.cs
  87. +3 −2 src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/SchemaHelper.cs
  88. +6 −6 ...t/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_Uuid_Entity.snap
  89. +9 −9 ...ration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Nested_Entity.snap
  90. +6 −6 ...ation.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Complete_Schema_With_Uuid_And_DateTime.snap
  91. +8 −8 ...ation/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatById.snap
  92. +4 −4 ...tion/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatsPage.snap
  93. +6 −6 ...CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_UpdateMembers_Mutation.snap
  94. +14 −14 ...ration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.QueryInterference.snap
  95. +0 −1 website/TEST
  96. +16 −13 website/gatsby-config.js
  97. +35 −20 website/gatsby-node.js
  98. +45 −45 website/package.json
  99. +64 −0 website/plugins/gatsby-plugin-validate-links/gatsby-node.js
  100. +4 −0 website/plugins/gatsby-plugin-validate-links/package.json
  101. +101 −0 website/plugins/gatsby-plugin-validate-links/utils.js
  102. +68 −0 website/plugins/gatsby-remark-gather-links/index.js
  103. +4 −0 website/plugins/gatsby-remark-gather-links/package.json
  104. +5 −0 website/plugins/shared/index.js
  105. +2 −2 website/src/blog/2019-02-04-hot-chocolate-0.7.0.md
  106. +1 −1 website/src/blog/2019-03-31-hot-chocolate-0.8.1.md
  107. +2 −2 website/src/blog/2019-06-05-hot-chocolate-9.0.0/2019-06-05-hot-chocolate-9.0.0.md
  108. +1 −1 website/src/blog/2019-09-27-strawberry-shake.md
  109. +1 −1 website/src/blog/2020-11-18-new-filtering-api/2020-11-18-new-filtering-api.md
  110. +5 −5 website/src/blog/2021-03-31-chillicream-platform-11-1/2021-03-31-chillicream-platform-11-1.md
  111. +0 −1 website/src/components/blog-article/blog-article-sharebar.tsx
  112. +9 −7 website/src/components/blog-article/blog-article.tsx
  113. +0 −1 website/src/components/doc-page/doc-page-aside.tsx
  114. +11 −12 website/src/components/doc-page/doc-page-navigation.tsx
  115. +11 −7 website/src/components/doc-page/doc-page.tsx
  116. +12 −5 website/src/components/images/banana-cake-pop.tsx
  117. +10 −5 website/src/components/images/blog-post-chillicream-platform-11-1.tsx
  118. +10 −5 website/src/components/images/blog-post-ef-meets-graphql.tsx
  119. +10 −5 website/src/components/images/blog-post-version-11.tsx
  120. +12 −5 website/src/components/images/hot-chocolate.tsx
  121. +1 −7 website/src/components/misc/global-style.tsx
  122. +6 −4 website/src/components/misc/seo.tsx
  123. +13 −6 website/src/components/widgets/blog-articles.tsx
  124. +1 −1 website/src/docs/hotchocolate/api-reference/aspnetcore.md
  125. +3 −1 website/src/docs/hotchocolate/api-reference/extending-filtering.md
  126. +3 −1 website/src/docs/hotchocolate/api-reference/filtering.md
  127. +1 −1 website/src/docs/hotchocolate/api-reference/index.md
  128. +1 −1 website/src/docs/hotchocolate/api-reference/migrate-from-10-to-11.md
  129. +1 −1 website/src/docs/hotchocolate/api-reference/visitors.md
  130. +1 −1 website/src/docs/hotchocolate/defining-a-schema/index.md
  131. +1 −1 website/src/docs/hotchocolate/defining-a-schema/scalars.md
  132. +0 −2 website/src/docs/hotchocolate/fetching-data/projections.md
  133. +1 −1 website/src/docs/hotchocolate/get-started.md
  134. +7 −4 website/src/docs/hotchocolate/integrations/index.md
  135. +2 −2 website/src/docs/hotchocolate/performance/index.md
  136. +0 −2 website/src/docs/hotchocolate/v10/code-first.md
  137. +1 −1 website/src/docs/hotchocolate/v10/execution-engine/index.md
  138. +1 −1 website/src/docs/hotchocolate/v10/execution-engine/instrumentation.md
  139. +1 −1 website/src/docs/hotchocolate/v10/security/security.md
  140. +2 −2 website/src/docs/hotchocolate/v10/stitching.md
  141. +3 −3 website/src/docs/strawberryshake/performance/index.md
  142. +2 −2 website/src/docs/strawberryshake/subscriptions.md
  143. +19 −11 website/src/pages/index.tsx
  144. +3 −2 website/src/templates/blog-article-template.tsx
  145. +5,457 −5,939 website/yarn.lock
6 changes: 3 additions & 3 deletions .build/Build.Environment.cs
Original file line number Diff line number Diff line change
@@ -11,9 +11,9 @@ partial class Build : NukeBuild

AbsolutePath SourceDirectory => RootDirectory / "src";
AbsolutePath AllSolutionFile => SourceDirectory / "All.sln";
AbsolutePath SonarSolutionFile => SourceDirectory / "Sonar.sln";
AbsolutePath TestSolutionFile => TemporaryDirectory / "All.Test.sln";
AbsolutePath PackSolutionFile => SourceDirectory / "All.Pack.sln";
AbsolutePath SonarSolutionFile => SourceDirectory / "Build.Sonar.sln";
AbsolutePath TestSolutionFile => TemporaryDirectory / "Build.Test.sln";
AbsolutePath PackSolutionFile => SourceDirectory / "Build.Pack.sln";
AbsolutePath SgSolutionFile => SourceDirectory / "StrawberryShake" / "SourceGenerator" / "StrawberryShake.SourceGenerator.sln";

AbsolutePath OutputDirectory => RootDirectory / "output";
24 changes: 14 additions & 10 deletions .build/Build.PublicApiAnalyzer.cs
Original file line number Diff line number Diff line change
@@ -28,10 +28,7 @@ partial class Build : NukeBuild
.DependsOn(Restore)
.Executes(() =>
{
if (!InvokedTargets.Contains(Restore))
{
DotNetBuildSonarSolution(AllSolutionFile);
}
DotNetBuildSonarSolution(AllSolutionFile);

DotNetBuild(c => c
.SetProjectFile(AllSolutionFile)
@@ -40,15 +37,11 @@ partial class Build : NukeBuild
.SetProperty("RequireDocumentationOfPublicApiChanges", true));
});

Target AddUnshipped => _ => _
Target AddUnshippedApi => _ => _
.DependsOn(Restore)
.Executes(() =>
{
// first we ensure that the All.sln exists.
if (!InvokedTargets.Contains(Restore))
{
DotNetBuildSonarSolution(AllSolutionFile);
}
DotNetBuildSonarSolution(AllSolutionFile);

// new we restore our local dotnet tools including dotnet-format
DotNetToolRestore(c => c.SetProcessWorkingDirectory(RootDirectory));
@@ -122,6 +115,17 @@ partial class Build : NukeBuild
Target MarkApiShipped => _ => _
.Executes(async () =>
{
Colorful.Console.WriteLine("This is only supposed to be executed after a release has been published.", Color.Yellow);
Colorful.Console.WriteLine("If you just want to stage your API changes, use the AddUnshippedApi script.", Color.Yellow);
Colorful.Console.WriteLine("Continue? (y/n)", Color.Yellow);

if (Colorful.Console.ReadKey().Key != ConsoleKey.Y)
{
return;
}

Colorful.Console.WriteLine();

var shippedFiles = Directory.GetFiles(SourceDirectory, _shippedApiFile, SearchOption.AllDirectories);

foreach (var shippedFile in shippedFiles)
20 changes: 15 additions & 5 deletions .build/Build.Sonar.cs
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Common.Tools.SonarScanner.SonarScannerTasks;
using static Helpers;
using static System.IO.Path;

partial class Build : NukeBuild
{
@@ -25,16 +26,18 @@ partial class Build : NukeBuild
Logger.Info($"GitHubBaseRef: {GitHubBaseRef}");
Logger.Info($"GitHubPRNumber: {GitHubPRNumber}");

TryDelete(SonarSolutionFile);
DotNetBuildSonarSolution(AllSolutionFile);
DotNetBuildSonarSolution(SonarSolutionFile, include: IsRelevantForSonar);

DotNetRestore(c => c
.SetProjectFile(AllSolutionFile)
.SetProjectFile(SonarSolutionFile)
.SetProcessWorkingDirectory(RootDirectory));

SonarScannerBegin(SonarBeginPrSettings);
DotNetBuild(SonarBuildAll);
DotNetTest(
c => CoverNoBuildSettingsOnly50(c, TestProjects),
c => CoverNoBuildSettingsOnly50(c, CoverProjects),
degreeOfParallelism: DegreeOfParallelism,
completeOnFailure: true);
SonarScannerEnd(SonarEndSettings);
@@ -43,18 +46,20 @@ partial class Build : NukeBuild
Target Sonar => _ => _
.Executes(() =>
{
TryDelete(SonarSolutionFile);
DotNetBuildSonarSolution(AllSolutionFile);
DotNetBuildSonarSolution(SonarSolutionFile, include: IsRelevantForSonar);

DotNetRestore(c => c
.SetProjectFile(AllSolutionFile)
.SetProjectFile(SonarSolutionFile)
.SetProcessWorkingDirectory(RootDirectory));

Logger.Info("Creating Sonar analysis for version: {0} ...", GitVersion.SemVer);

SonarScannerBegin(SonarBeginFullSettings);
DotNetBuild(SonarBuildAll);
DotNetTest(
c => CoverNoBuildSettingsOnly50(c, TestProjects),
c => CoverNoBuildSettingsOnly50(c, CoverProjects),
degreeOfParallelism: DegreeOfParallelism,
completeOnFailure: true);
SonarScannerEnd(SonarEndSettings);
@@ -103,8 +108,13 @@ SonarScannerEndSettings SonarEndSettings(SonarScannerEndSettings settings) =>

DotNetBuildSettings SonarBuildAll(DotNetBuildSettings settings) =>
settings
.SetProjectFile(AllSolutionFile)
.SetProjectFile(SonarSolutionFile)
.SetNoRestore(true)
.SetConfiguration(Debug)
.SetProcessWorkingDirectory(RootDirectory);

private bool IsRelevantForSonar(string fileName)
{
return !ExcludedCover.Contains(GetFileNameWithoutExtension(fileName));
}
}
13 changes: 12 additions & 1 deletion .build/Build.Tests.cs
Original file line number Diff line number Diff line change
@@ -22,12 +22,23 @@ partial class Build : NukeBuild
"HotChocolate.Types.Selections.PostgreSql.Tests"
};

readonly HashSet<string> ExcludedCover = new()
{
"HotChocolate.Types.Selections.PostgreSql.Tests",
"HotChocolate.Configuration.Analyzers.Tests",
"HotChocolate.Data.Neo4J.Integration.Tests"
};

[Partition(5)] readonly Partition TestPartition;

IEnumerable<Project> TestProjects => TestPartition.GetCurrent(
ProjectModelTasks.ParseSolution(AllSolutionFile).GetProjects("*.Tests")
.Where((t => !ExcludedTests.Contains(t.Name))));

IEnumerable<Project> CoverProjects => TestPartition.GetCurrent(
ProjectModelTasks.ParseSolution(AllSolutionFile).GetProjects("*.Tests")
.Where((t => !ExcludedCover.Contains(t.Name))));

Target Test => _ => _
.Produces(TestResultDirectory / "*.trx")
.Executes(() =>
@@ -65,7 +76,7 @@ partial class Build : NukeBuild
try
{
DotNetBuildSonarSolution(AllSolutionFile);
DotNetBuildTestSolution(TestSolutionFile, TestProjects);
DotNetBuildTestSolution(TestSolutionFile, CoverProjects);

DotNetBuild(c => c
.SetProjectFile(TestSolutionFile)
21 changes: 21 additions & 0 deletions .build/Build.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.IO;
using Nuke.Common;
using Nuke.Common.CI;
using Nuke.Common.CI.AzurePipelines;
@@ -71,4 +72,24 @@ partial class Build : NukeBuild
.SetInformationalVersion(GitVersion.InformationalVersion)
.SetVersion(GitVersion.SemVer));
});

Target Reset => _ => _
.Executes(() =>
{
TryDelete(AllSolutionFile);
TryDelete(SonarSolutionFile);
TryDelete(TestSolutionFile);
TryDelete(PackSolutionFile);

DotNetBuildSonarSolution(AllSolutionFile);
DotNetRestore(c => c.SetProjectFile(AllSolutionFile));
});

private static void TryDelete(string fileName)
{
if(File.Exists(fileName))
{
File.Delete(fileName);
}
}
}
5 changes: 1 addition & 4 deletions .build/Helpers.cs
Original file line number Diff line number Diff line change
@@ -39,10 +39,7 @@ public static IEnumerable<string> GetAllProjects(
if (!(include?.Invoke(file) ?? true)
|| file.Contains("benchmark", StringComparison.OrdinalIgnoreCase)
|| file.Contains("demo", StringComparison.OrdinalIgnoreCase)
|| file.Contains("sample", StringComparison.OrdinalIgnoreCase)
|| file.Contains("HotChocolate.Core.Tests", StringComparison.OrdinalIgnoreCase)
|| file.Contains("HotChocolate.Utilities.Introspection.Tests", StringComparison.OrdinalIgnoreCase)
|| file.Contains("HotChocolate.Types.Selection", StringComparison.OrdinalIgnoreCase))
|| file.Contains("sample", StringComparison.OrdinalIgnoreCase))
{
continue;
}
43 changes: 43 additions & 0 deletions .devops/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
trigger:
- develop

pool:
vmImage: "ubuntu-20.04"

steps:
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '14.x'
checkLatest: true

- task: YarnInstaller@3
displayName: 'Install Yarn'
inputs:
versionSpec: '1.x'
checkLatest: true

- task: Yarn@3
displayName: 'Install Packages'
inputs:
projectDirectory: 'website'
arguments: '--frozen-lockfile'

- task: Yarn@3
displayName: 'Run yarn build'
inputs:
projectDirectory: 'website'
arguments: 'build --prefix-paths'

- task: CmdLine@2
displayName: 'Run git config'
inputs:
script: |
git config user.email "$(UserEmail)"
git config user.name "$(UserName)"
- task: Yarn@3
displayName: 'Run yarn gh-pages'
inputs:
projectDirectory: 'website'
arguments: 'gh-pages -d public -r https://$(GitHubToken)@github.com/$(RepositoryName).git'
30 changes: 30 additions & 0 deletions .devops/test-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
trigger:
- develop

pool:
vmImage: "ubuntu-20.04"

steps:
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '14.x'
checkLatest: true

- task: YarnInstaller@3
displayName: 'Install Yarn'
inputs:
versionSpec: '1.x'
checkLatest: true

- task: Yarn@3
displayName: 'Install Packages'
inputs:
projectDirectory: 'website'
arguments: '--frozen-lockfile'

- task: Yarn@3
displayName: 'Run yarn build'
inputs:
projectDirectory: 'website'
arguments: 'build --prefix-paths'
16 changes: 16 additions & 0 deletions .github/workflows/check-public-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check Public API

on:
pull_request:
branches:
- main

jobs:
check-public-api:
name: "Check Public API"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
- run: ./build.sh CheckPublicApi
name: "Check for undocumented public API changes"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -307,6 +307,9 @@ __mismatch__
coverage.opencover.xml
output
src/All.sln
src/Build.Sonar.sln
src/Build.Test.sln
src/Build.Pack.sln
*.DotSettings

# asp .net core
6 changes: 4 additions & 2 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@
"items": {
"type": "string",
"enum": [
"AddUnshipped",
"AddUnshippedApi",
"CheckPublicApi",
"Clean",
"Compile",
@@ -101,6 +101,7 @@
"PackLocal",
"Publish",
"ReportCoverage",
"Reset",
"Restore",
"Sonar",
"SonarPr",
@@ -120,7 +121,7 @@
"items": {
"type": "string",
"enum": [
"AddUnshipped",
"AddUnshippedApi",
"CheckPublicApi",
"Clean",
"Compile",
@@ -132,6 +133,7 @@
"PackLocal",
"Publish",
"ReportCoverage",
"Reset",
"Restore",
"Sonar",
"SonarPr",
Loading