Skip to content

Commit

Permalink
Package updates (#552)
Browse files Browse the repository at this point in the history
* UPdated packages

* updated action
  • Loading branch information
samsmithnz committed Sep 1, 2023
1 parent 7c700bb commit 521d349
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
if: github.ref == 'refs/heads/main'
steps:
- name: Run Sonarcloud test
uses: samsmithnz/SamsDotNetSonarCloudAction@1.2.0
uses: samsmithnz/SamsDotNetSonarCloudAction@2.0.0
with:
projects: 'src/RepoGovernance.Core/RepoGovernance.Core.csproj,src/RepoGovernance.Tests/RepoGovernance.Tests.csproj,src/RepoGovernance.Service/RepoGovernance.Service.csproj,src/RepoGovernance.Web/RepoGovernance.Web.csproj,src/RepoGovernance.Function/RepoGovernance.Function.csproj'
dotnet-version: '7.0.x'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.21.0" />
<PackageReference Include="RepoAutomation.Core" Version="1.5.0" />
<PackageReference Include="RepoAutomation.Core" Version="1.5.1" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/RepoGovernance.Core/RepoGovernance.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<ItemGroup>
<PackageReference Include="Azure.Data.Tables" Version="12.8.1" />
<PackageReference Include="Azure.Identity" Version="1.10.0" />
<PackageReference Include="DotNetCensus.Core" Version="1.6.0" />
<PackageReference Include="GitHubActionsDotNet" Version="1.1.4" />
<PackageReference Include="DotNetCensus.Core" Version="1.6.1" />
<PackageReference Include="GitHubActionsDotNet" Version="1.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.24.0" />
<PackageReference Include="RepoAutomation.Core" Version="1.5.0" />
<PackageReference Include="Microsoft.Graph" Version="5.25.0" />
<PackageReference Include="RepoAutomation.Core" Version="1.5.1" />
</ItemGroup>

</Project>
58 changes: 29 additions & 29 deletions src/RepoGovernance.Tests/SummaryItemsControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public async Task UpdateRepoGovernanceSummaryItemTest()

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -67,10 +67,10 @@ public async Task UpdateDevOpsMetricsSummaryItemTest()

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -100,10 +100,10 @@ public async Task UpdateSamsFeatureFlagsSummaryItemTest()

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -132,10 +132,10 @@ public async Task UpdateSamSmithNZdotComSummaryItemTest()

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -164,10 +164,10 @@ public async Task UpdateAzurePipelinesToGitHubActionsConverterWebSummaryItemTest

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -269,18 +269,18 @@ public async Task GetSummaryItemsTest()
{
Assert.AreEqual("CustomQueue", item2.Repo);
Assert.IsNotNull(item2.RepoSettings);
Assert.AreEqual(1, item2.RepoSettingsRecommendations.Count);
Assert.AreEqual("Consider disabling 'Allow rebase merge' in repo settings, as rebasing can be confusing", item2.RepoSettingsRecommendations[0]);
Assert.AreEqual(0, item2.RepoSettingsRecommendations.Count);
//Assert.AreEqual("Consider disabling 'Allow rebase merge' in repo settings, as rebasing can be confusing", item2.RepoSettingsRecommendations[0]);
Assert.AreEqual(1, item2.Actions.Count);
Assert.AreEqual(0, item2.ActionRecommendations.Count);
Assert.AreEqual(0, item2.Dependabot.Count);
Assert.AreEqual(null, item2.DependabotFile);
Assert.AreEqual(null, item2.DependabotRoot);
Assert.AreEqual(1, item2.DependabotRecommendations.Count);
Assert.AreEqual("Consider adding a Dependabot file to automatically update dependencies", item2.DependabotRecommendations[0]);
Assert.AreEqual(1, item2.Dependabot.Count);
Assert.IsNotNull(item2.DependabotFile);
Assert.IsNotNull(item2.DependabotRoot);
Assert.AreEqual(0, item2.DependabotRecommendations.Count);
//Assert.AreEqual("Consider adding a Dependabot file to automatically update dependencies", item2.DependabotRecommendations[0]);
Assert.IsNotNull(item2.BranchPolicies);
Assert.AreEqual(1, item2.BranchPoliciesRecommendations.Count);
Assert.AreEqual("Consider enabling 'Enforce Admins', to ensure that all users of the repo must follow branch policy rules", item2.BranchPoliciesRecommendations[0]);
Assert.AreEqual(0, item2.BranchPoliciesRecommendations.Count);
//Assert.AreEqual("Consider enabling 'Enforce Admins', to ensure that all users of the repo must follow branch policy rules", item2.BranchPoliciesRecommendations[0]);
Assert.AreEqual(1, item2.GitVersion.Count);
Assert.AreEqual(0, item2.GitVersionRecommendations.Count);
//Assert.AreEqual("Consider adding Git Versioning to this repo", item2.GitVersionRecommendations[0]);
Expand Down

0 comments on commit 521d349

Please sign in to comment.