Skip to content

Commit

Permalink
Try fix pipeline again
Browse files Browse the repository at this point in the history
  • Loading branch information
CorruptComputer committed Aug 24, 2024
1 parent fdd0e99 commit 515f515
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 22 deletions.
41 changes: 30 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,47 @@ updates:
schedule:
interval: "daily"
groups:
microsoft:
Autofac:
patterns:
- "Autofac"
- "Autofac.*"
DnsClient:
patterns:
- "DnsClient"
FluentValidation:
patterns:
- "FluentValidation"
- "FluentValidation.*"
GeoJSON:
patterns:
- "GeoJSON.Text"
MediatR:
patterns:
- "MediatR"
- "MediatR.*"
Microsoft:
patterns:
- "Microsoft.*"
exclude-patterns:
- "Microsoft.NET.Test.Sdk"
mediatr:
MudBlazor:
patterns:
- "MediatR"
- "MediatR.*"
postgresql:
- "MudBlazor"
Npgsql:
patterns:
- "Npgsql.EntityFrameworkCore.PostgreSQL"
- "Npgsql.EntityFrameworkCore.PostgreSQL.*"
autofac:
- "Npgsql.EntityFrameworkCore.PostgreSQL.Design"
NSwag:
patterns:
- "Autofac"
- "Autofac.*"
serilog:
- "NSwag.ApiDescription.Client"
Serilog:
patterns:
- "Serilog"
- "Serilog.*"
testing:
Swashbuckle:
patterns:
- "Swashbuckle.AspNetCore"
Testing:
patterns:
- "FluentAssertions"
- "Microsoft.NET.Test.Sdk"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
test:
name: .NET Build & Test
runs-on: ubuntu-latest
env:
# Shouldn't be needed, but just in case want to force this with an environment variable
Database__UseInMemoryDb: true
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -27,8 +30,6 @@ jobs:

- name: Build
run: dotnet build --no-incremental
env:
BUILD_ENVIRONMENT: 'GitHub'

- name: Test
run: dotnet test --no-build
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
# Shouldn't be needed, but just in case want to force this with an environment variable
Database__UseInMemoryDb: true
steps:
# Setup
- name: Checkout Repo
Expand All @@ -40,7 +43,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
BUILD_ENVIRONMENT: 'GitHub'
run: |
dotnet tool install --global dotnet-sonarscanner
dotnet-sonarscanner begin /k:"CorruptComputer_Bones" /o:"corruptcomputer" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=./Tests/*.UnitTests/TestResults/*/coverage.opencover.xml
Expand Down
4 changes: 2 additions & 2 deletions Bones.Api/Bones.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.1" />
</ItemGroup>

<Target Name="CreateSwaggerJson" AfterTargets="Build" Condition="$(Configuration) == 'Debug' And $(BUILD_ENVIRONMENT) != 'GitHub'">
<Exec Command="dotnet swagger tofile --output ./OpenApi/swagger.json $(OutputPath)$(AssemblyName).dll develop" WorkingDirectory="$(ProjectDir)" />
<Target Name="CreateSwaggerJson" AfterTargets="Build" Condition="$(Configuration) == 'Debug'">
<Exec Command="Database__UseInMemoryDb=true dotnet swagger tofile --output OpenApi/swagger.json $(OutputPath)$(AssemblyName).dll develop" WorkingDirectory="$(ProjectDir)" />
</Target>

<ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions Bones.Database/Bones.Database.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentValidation" Version="11.9.2" />
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.9.2" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.8" />
Expand Down
2 changes: 2 additions & 0 deletions Bones.Shared/Bones.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

<ItemGroup>
<PackageReference Include="DnsClient" Version="1.8.0" />
<PackageReference Include="FluentValidation" Version="11.9.2" />
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.9.2" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Bones.WebUI/Bones.WebUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</PackageReference>
</ItemGroup>

<Target Name="GenerateApiClients" BeforeTargets="BeforeBuild" Condition="$(Configuration) == 'Debug' And $(BUILD_ENVIRONMENT) != 'GitHub'">
<Target Name="GenerateApiClients" BeforeTargets="BeforeBuild" Condition="$(Configuration) == 'Debug'">
<Message Text="Generating API Clients" Importance="High" />
<Exec Command="dotnet nswag run nswag.json" />
</Target>
Expand Down
1 change: 1 addition & 0 deletions Bones.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=appsettings/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=consts/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=mediat/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=postgre/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
1 change: 0 additions & 1 deletion Tests/Bones.Api.UnitTests/Bones.Api.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
1 change: 0 additions & 1 deletion Tests/Bones.Shared.UnitTests/Bones.Shared.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 515f515

Please sign in to comment.