From 1fef8dd4564d77959102e84f4df32d335b84c1e6 Mon Sep 17 00:00:00 2001 From: Paul Welter Date: Tue, 28 May 2024 09:42:21 -0500 Subject: [PATCH] update packages --- .github/dependabot.yml | 62 +++++++++++++++---- .github/workflows/dotnet.yml | 16 ++--- coverlet.runsettings | 2 - src/Directory.Build.props | 19 +++--- src/NLog.Mongo/NLog.Mongo.csproj | 4 +- test/NLog.Mongo.Tests/NLog.Mongo.Tests.csproj | 16 ++--- 6 files changed, 77 insertions(+), 42 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8885fa6..17ce3cc 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,15 +1,53 @@ version: 2 updates: -- package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: daily - time: "01:00" - open-pull-requests-limit: 10 + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily + time: "01:00" + timezone: "America/Chicago" + open-pull-requests-limit: 10 -- package-ecosystem: nuget - directory: "/" - schedule: - interval: daily - time: "11:00" - open-pull-requests-limit: 10 + - package-ecosystem: nuget + directory: "/" + schedule: + interval: daily + time: "02:00" + timezone: "America/Chicago" + open-pull-requests-limit: 10 + groups: + Azure: + patterns: + - "Azure.*" + - "Microsoft.Azure.*" + - "Microsoft.Extensions.Azure" + AspNetCoreHealthChecks: + patterns: + - "AspNetCore.HealthChecks.*" + AspNetCore: + patterns: + - "Microsoft.AspNetCore.*" + - "Microsoft.Extensions.Features" + MicrosoftExtensions: + patterns: + - "Microsoft.Extensions.*" + EntityFrameworkCore: + patterns: + - "Microsoft.EntityFrameworkCore.*" + OpenTelemetry: + patterns: + - "OpenTelemetry.*" + Hangfire: + patterns: + - "Hangfire" + - "Hangfire.*" + Testcontainers: + patterns: + - "Testcontainers.*" + xUnit: + patterns: + - "xunit" + - "xunit.assert" + - "xunit.core" + - "xunit.extensibility.*" + - "xunit.runner.*" diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 763bcf2..16b5d87 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -3,6 +3,8 @@ name: Build env: DOTNET_NOLOGO: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true + DOTNET_ENVIRONMENT: github + ASPNETCORE_ENVIRONMENT: github BUILD_PATH: '${{github.workspace}}/artifacts' COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} @@ -44,6 +46,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore Dependencies run: dotnet restore @@ -52,25 +55,18 @@ jobs: run: dotnet build --no-restore --configuration Release - name: Run Test - run: dotnet test --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings - - - name: Generate Coverage - uses: danielpalme/ReportGenerator-GitHub-Action@5.3.4 - with: - reports: '${{github.workspace}}/test/*/TestResults/*/coverage.info' - targetdir: ${{env.BUILD_PATH}} - reporttypes: lcov + run: dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings - name: Report Coverage if: success() uses: coverallsapp/github-action@v2 with: - file: artifacts/lcov.info + file: '${{github.workspace}}/test/*/TestResults/*/coverage.info' format: lcov - name: Create Packages if: success() && github.event_name != 'pull_request' - run: dotnet pack --configuration Release --include-symbols --include-source --no-build --no-restore --output "${{env.BUILD_PATH}}" + run: dotnet pack --configuration Release --no-build --output "${{env.BUILD_PATH}}" - name: Upload Packages if: success() && github.event_name != 'pull_request' diff --git a/coverlet.runsettings b/coverlet.runsettings index 4eac22c..b28750f 100644 --- a/coverlet.runsettings +++ b/coverlet.runsettings @@ -5,8 +5,6 @@ lcov - Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute,TestSDKAutoGeneratedCode - true diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 0fd1758..c9d5b49 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -16,14 +16,18 @@ true - - portable - true - true - snupkg + + embedded + true + false - + + true + + + + en-US latest enable 1591 @@ -32,9 +36,8 @@ v - + - diff --git a/src/NLog.Mongo/NLog.Mongo.csproj b/src/NLog.Mongo/NLog.Mongo.csproj index a834836..6319157 100644 --- a/src/NLog.Mongo/NLog.Mongo.csproj +++ b/src/NLog.Mongo/NLog.Mongo.csproj @@ -4,8 +4,8 @@ - - + + diff --git a/test/NLog.Mongo.Tests/NLog.Mongo.Tests.csproj b/test/NLog.Mongo.Tests/NLog.Mongo.Tests.csproj index 7bc4ef4..8ef8840 100644 --- a/test/NLog.Mongo.Tests/NLog.Mongo.Tests.csproj +++ b/test/NLog.Mongo.Tests/NLog.Mongo.Tests.csproj @@ -17,20 +17,20 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - - - + + + + + - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all