Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
17 changes: 1 addition & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: macos-latest
environment: production
needs: [ publish-test-results, build-pages, benchmarks, static-code-analysis, pack, mutation-tests ]
needs: [ publish-test-results, benchmarks, static-code-analysis, pack, mutation-tests ]
permissions:
contents: write
steps:
Expand Down Expand Up @@ -257,18 +257,3 @@ jobs:
state: released
skip-label: |
state: released

build-pages:
name: Update Pages
runs-on: ubuntu-latest
needs: [ benchmarks ]
steps:
- name: Trigger pages update in aweXpect Repo
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.REPOSITORY_DISPATCH }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/aweXpect/aweXpect/dispatches \
-d "{\"event_type\": \"extension-documentation-updated-event\"}"
109 changes: 55 additions & 54 deletions Mockolate.slnx
Original file line number Diff line number Diff line change
@@ -1,82 +1,83 @@
<Solution>
<Folder Name="/Benchmarks/">
<Project Path="Benchmarks/Mockolate.Benchmarks/Mockolate.Benchmarks.csproj"/>
<Project Path="Benchmarks/Mockolate.Benchmarks/Mockolate.Benchmarks.csproj" />
</Folder>
<Folder Name="/Pipeline/">
<Project Path="Pipeline/Build.csproj">
<Build Project="false"/>
<Build Project="false" />
</Project>
<Project Path="Tests/Build.Tests/Build.Tests.csproj"/>
<Project Path="Tests/Build.Tests/Build.Tests.csproj" />
</Folder>
<Folder Name="/Tests/">
<File Path="Tests/Directory.Build.props"/>
<Project Path="Tests/Mockolate.Analyzers.Tests/Mockolate.Analyzers.Tests.csproj"/>
<Project Path="Tests/Mockolate.Api.Tests/Mockolate.Api.Tests.csproj"/>
<Project Path="Tests/Mockolate.ExampleTests/Mockolate.ExampleTests.csproj"/>
<Project Path="Tests/Mockolate.Internal.Tests/Mockolate.Internal.Tests.csproj"/>
<Project Path="Tests/Mockolate.SourceGenerators.Tests/Mockolate.SourceGenerators.Tests.csproj"/>
<Project Path="Tests/Mockolate.Tests/Mockolate.Tests.csproj"/>
<File Path="Tests/Directory.Build.props" />
<Project Path="Tests/Mockolate.Analyzers.Tests/Mockolate.Analyzers.Tests.csproj" />
<Project Path="Tests/Mockolate.Api.Tests/Mockolate.Api.Tests.csproj" />
<Project Path="Tests/Mockolate.ExampleTests/Mockolate.ExampleTests.csproj" />
<Project Path="Tests/Mockolate.Internal.Tests/Mockolate.Internal.Tests.csproj" />
<Project Path="Tests/Mockolate.SourceGenerators.Tests/Mockolate.SourceGenerators.Tests.csproj" />
<Project Path="Tests/Mockolate.Tests/Mockolate.Tests.csproj" />
</Folder>
<Folder Name="/Tests/Aot/">
<File Path="Tests/Aot/Directory.Build.props"/>
<Project Path="Tests/Aot/Mockolate.AotCompatibility.TestApp/Mockolate.AotCompatibility.TestApp.csproj"/>
<File Path="Tests/Aot/Directory.Build.props" />
<Project Path="Tests/Aot/Mockolate.AotCompatibility.TestApp/Mockolate.AotCompatibility.TestApp.csproj" />
</Folder>
<Folder Name="/_/">
<File Path=".editorconfig"/>
<File Path=".gitattributes"/>
<File Path=".gitignore"/>
<File Path="CODE_OF_CONDUCT.md"/>
<File Path="CONTRIBUTING.md"/>
<File Path="Directory.Build.props"/>
<File Path="Directory.Packages.props"/>
<File Path="global.json"/>
<File Path="LICENSE"/>
<File Path="Mockolate.sln.DotSettings"/>
<File Path="nuget.config"/>
<File Path="README.md"/>
<File Path=".editorconfig" />
<File Path=".gitattributes" />
<File Path=".gitignore" />
<File Path="CODE_OF_CONDUCT.md" />
<File Path="CONTRIBUTING.md" />
<File Path="Directory.Build.props" />
<File Path="Directory.Packages.props" />
<File Path="global.json" />
<File Path="LICENSE" />
<File Path="Mockolate.sln.DotSettings" />
<File Path="nuget.config" />
<File Path="README.md" />
</Folder>
<Folder Name="/_/.github/"/>
<Folder Name="/_/.github/" />
<Folder Name="/_/.github/workflows/">
<File Path=".github/workflows/build.yml"/>
<File Path=".github/workflows/ci-analysis.yml"/>
<File Path=".github/workflows/ci.yml"/>
<File Path=".github/workflows/build.yml" />
<File Path=".github/workflows/ci-analysis.yml" />
<File Path=".github/workflows/ci.yml" />
<File Path=".github/workflows/notify-docs-site.yml" />
</Folder>
<Folder Name="/_/Docs/">
<File Path="Docs/pages/00-index.md"/>
<File Path="Docs/pages/01-create-mocks.md"/>
<File Path="Docs/pages/03-mock-events.md"/>
<File Path="Docs/pages/04-verify-interactions.md"/>
<File Path="Docs/pages/07-analyzers.md"/>
<File Path="Docs/pages/08-comparison.md"/>
<File Path="Docs/pages/00-index.md" />
<File Path="Docs/pages/01-create-mocks.md" />
<File Path="Docs/pages/03-mock-events.md" />
<File Path="Docs/pages/04-verify-interactions.md" />
<File Path="Docs/pages/07-analyzers.md" />
<File Path="Docs/pages/08-comparison.md" />
</Folder>
<Folder Name="/_/Docs/advanced-features/">
<File Path="Docs/pages/advanced-features/01-protected-members.md"/>
<File Path="Docs/pages/advanced-features/02-static-interface-members.md"/>
<File Path="Docs/pages/advanced-features/03-advanced-callback-features.md"/>
<File Path="Docs/pages/advanced-features/04-monitor-interactions.md"/>
<File Path="Docs/pages/advanced-features/05-check-for-unexpected-interactions.md"/>
<File Path="Docs/pages/advanced-features/_category_.json"/>
<File Path="Docs/pages/advanced-features/01-protected-members.md" />
<File Path="Docs/pages/advanced-features/02-static-interface-members.md" />
<File Path="Docs/pages/advanced-features/03-advanced-callback-features.md" />
<File Path="Docs/pages/advanced-features/04-monitor-interactions.md" />
<File Path="Docs/pages/advanced-features/05-check-for-unexpected-interactions.md" />
<File Path="Docs/pages/advanced-features/_category_.json" />
</Folder>
<Folder Name="/_/Docs/setup/">
<File Path="Docs/pages/setup/01-properties.md"/>
<File Path="Docs/pages/setup/02-methods.md"/>
<File Path="Docs/pages/setup/03-indexers.md"/>
<File Path="Docs/pages/setup/04-parameter-matching.md"/>
<File Path="Docs/pages/setup/_category_.json"/>
<File Path="Docs/pages/setup/01-properties.md" />
<File Path="Docs/pages/setup/02-methods.md" />
<File Path="Docs/pages/setup/03-indexers.md" />
<File Path="Docs/pages/setup/04-parameter-matching.md" />
<File Path="Docs/pages/setup/_category_.json" />
</Folder>
<Folder Name="/_/Docs/special-types/">
<File Path="Docs/pages/special-types/01-httpclient.md"/>
<File Path="Docs/pages/special-types/02-delegates.md"/>
<File Path="Docs/pages/special-types/_category_.json"/>
<File Path="Docs/pages/special-types/01-httpclient.md" />
<File Path="Docs/pages/special-types/02-delegates.md" />
<File Path="Docs/pages/special-types/_category_.json" />
</Folder>
<Folder Name="/_/Source/">
<File Path="Source/Directory.Build.props"/>
<File Path="Source/Directory.Build.props" />
</Folder>
<Folder Name="/_/Tests/">
<File Path="Tests/Directory.Build.props"/>
<File Path="Tests/Directory.Build.props" />
</Folder>
<Project Path="Source/Mockolate.Analyzers.CodeFixers/Mockolate.Analyzers.CodeFixers.csproj"/>
<Project Path="Source/Mockolate.Analyzers/Mockolate.Analyzers.csproj"/>
<Project Path="Source/Mockolate.SourceGenerators/Mockolate.SourceGenerators.csproj"/>
<Project Path="Source/Mockolate/Mockolate.csproj"/>
<Project Path="Source/Mockolate.Analyzers.CodeFixers/Mockolate.Analyzers.CodeFixers.csproj" />
<Project Path="Source/Mockolate.Analyzers/Mockolate.Analyzers.csproj" />
<Project Path="Source/Mockolate.SourceGenerators/Mockolate.SourceGenerators.csproj" />
<Project Path="Source/Mockolate/Mockolate.csproj" />
</Solution>
6 changes: 3 additions & 3 deletions Pipeline/Build.Benchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ partial class Build
Credentials tokenAuth = new(GithubToken);
gitHubClient.Credentials = tokenAuth;
IReadOnlyList<IssueComment> comments =
await gitHubClient.Issue.Comment.GetAllForIssue("aweXpect", "Mockolate", prId);
await gitHubClient.Issue.Comment.GetAllForIssue("Testably", "Mockolate", prId);
long? commentId = null;
Log.Information($"Found {comments.Count} comments");
foreach (IssueComment comment in comments)
Expand All @@ -112,12 +112,12 @@ partial class Build
if (commentId == null)
{
Log.Information($"Create comment:\n{body}");
await gitHubClient.Issue.Comment.Create("aweXpect", "Mockolate", prId, body);
await gitHubClient.Issue.Comment.Create("Testably", "Mockolate", prId, body);
}
else
{
Log.Information($"Update comment:\n{body}");
await gitHubClient.Issue.Comment.Update("aweXpect", "Mockolate", commentId.Value, body);
await gitHubClient.Issue.Comment.Update("Testably", "Mockolate", commentId.Value, body);
}
}
});
Expand Down
6 changes: 3 additions & 3 deletions Pipeline/Build.MutationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ await client.PutAsync(
Credentials tokenAuth = new(GithubToken);
gitHubClient.Credentials = tokenAuth;
IReadOnlyList<IssueComment> comments =
await gitHubClient.Issue.Comment.GetAllForIssue("aweXpect", "Mockolate", prId);
await gitHubClient.Issue.Comment.GetAllForIssue("Testably", "Mockolate", prId);
long? commentId = null;
Log.Information($"Found {comments.Count} comments");
foreach (IssueComment comment in comments)
Expand All @@ -195,12 +195,12 @@ await client.PutAsync(
if (commentId == null)
{
Log.Information($"Create comment:\n{body}");
await gitHubClient.Issue.Comment.Create("aweXpect", "Mockolate", prId, body);
await gitHubClient.Issue.Comment.Create("Testably", "Mockolate", prId, body);
}
else
{
Log.Information($"Update comment:\n{body}");
await gitHubClient.Issue.Comment.Update("aweXpect", "Mockolate", commentId.Value, body);
await gitHubClient.Issue.Comment.Update("Testably", "Mockolate", commentId.Value, body);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Pipeline/BuildExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public static class BuildExtensions
{
private const string RepositoryApiBaseUrl = "https://api.github.com/repos/aweXpect/Mockolate";
x private const string RepositoryApiBaseUrl = "https://api.github.com/repos/Testably/Mockolate";

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Unit tests (ubuntu-latest)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Mutation tests

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Mutation tests

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Static code analysis

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Static code analysis

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / API tests

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / API tests

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Unit tests (windows-latest)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Unit tests (windows-latest)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CompletePropertyBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CompletePropertyBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Unit tests (macos-latest)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CompleteEventBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CompleteEventBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CallbackBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CallbackBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CompleteIndexerBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CompleteIndexerBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CompleteMethodBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (CompleteMethodBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (MockCreationBenchmarks)

Member modifier 'private' must precede the member type and name

Check failure on line 18 in Pipeline/BuildExtensions.cs

View workflow job for this annotation

GitHub Actions / Benchmarks (MockCreationBenchmarks)

Member modifier 'private' must precede the member type and name
Comment thread
vbreuss marked this conversation as resolved.
Outdated

public static SonarScannerBeginSettings SetPullRequestOrBranchName(
this SonarScannerBeginSettings settings,
Expand Down
Loading