diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8885fa6a..fa8c583b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,15 +1,57 @@ 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.*" + Serilog: + patterns: + - "Serilog" + - "Serilog.*" + Hangfire: + patterns: + - "Hangfire" + - "Hangfire.*" + Testcontainers: + patterns: + - "Testcontainers.*" + xUnit: + patterns: + - "xunit" + - "xunit.assert" + - "xunit.core" + - "xunit.extensibility.*" + - "xunit.runner.*" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b2c053a4..8f2338b3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,10 +6,10 @@ on: - master - develop tags: - - 'v*' + - "v*" paths: - - 'docs/**' - - 'mkdocs.yml' + - "docs/**" + - "mkdocs.yml" permissions: contents: write @@ -37,7 +37,7 @@ jobs: uses: actions/upload-pages-artifact@v3 with: name: github-pages - path: 'site/' + path: "site/" pages: runs-on: ubuntu-latest diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ba1ebbab..3ea10f27 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -5,7 +5,7 @@ env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_ENVIRONMENT: github ASPNETCORE_ENVIRONMENT: github - BUILD_PATH: '${{github.workspace}}/artifacts' + BUILD_PATH: "${{github.workspace}}/artifacts" COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} on: @@ -14,17 +14,16 @@ on: - master - develop tags: - - 'v*' + - "v*" paths-ignore: - - 'docs/**' - - 'mkdocs.yml' + - "docs/**" + - "mkdocs.yml" pull_request: branches: - master - develop jobs: - build: runs-on: ubuntu-latest @@ -32,52 +31,52 @@ jobs: mssql: image: mcr.microsoft.com/mssql/server:2019-latest env: - MSSQL_SA_PASSWORD: '!P@ssw0rd' - ACCEPT_EULA: 'Y' + MSSQL_SA_PASSWORD: "!P@ssw0rd" + ACCEPT_EULA: "Y" ports: - 1433:1433 volumes: - mssql_data:/var/opt/mssql steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Install .NET - uses: actions/setup-dotnet@v4 - with: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install .NET + uses: actions/setup-dotnet@v4 + with: dotnet-version: | - 6.0.x - 8.0.x + 6.0.x + 8.0.x - - name: Restore Dependencies - run: dotnet restore + - name: Restore Dependencies + run: dotnet restore - - name: Build Solution - run: dotnet build --no-restore --configuration Release + - name: Build Solution + run: dotnet build --no-restore --configuration Release - - name: Run Test - run: dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings + - name: Run Test + 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: "${{github.workspace}}/test/*/TestResults/*/coverage.info" - format: lcov + - name: Report Coverage + if: success() + uses: coverallsapp/github-action@v2 + with: + 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}}" + - name: Create Packages + if: success() && github.event_name != 'pull_request' + run: dotnet pack --configuration Release --no-build --output "${{env.BUILD_PATH}}" - - name: Upload Packages - if: success() && github.event_name != 'pull_request' - uses: actions/upload-artifact@v4 - with: - name: packages - path: '${{env.BUILD_PATH}}' + - name: Upload Packages + if: success() && github.event_name != 'pull_request' + uses: actions/upload-artifact@v4 + with: + name: packages + path: "${{env.BUILD_PATH}}" deploy: runs-on: ubuntu-latest @@ -85,30 +84,29 @@ jobs: if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) steps: - - name: Download Artifact - uses: actions/download-artifact@v4 - with: - name: packages - - - name: Publish Packages GitHub - run: | - for package in $(find -name "*.nupkg"); do - echo "${0##*/}": Pushing $package... - dotnet nuget push $package --source https://nuget.pkg.github.com/loresoft/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate - done - - - name: Publish Packages feedz - run: | - for package in $(find -name "*.nupkg"); do - echo "${0##*/}": Pushing $package... - dotnet nuget push $package --source https://f.feedz.io/loresoft/open/nuget/index.json --api-key ${{ secrets.FEEDDZ_KEY }} --skip-duplicate - done - - - name: Publish Packages Nuget - if: startsWith(github.ref, 'refs/tags/v') - run: | - for package in $(find -name "*.nupkg"); do - echo "${0##*/}": Pushing $package... - dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate - done - + - name: Download Artifact + uses: actions/download-artifact@v4 + with: + name: packages + + - name: Publish Packages GitHub + run: | + for package in $(find -name "*.nupkg"); do + echo "${0##*/}": Pushing $package... + dotnet nuget push $package --source https://nuget.pkg.github.com/loresoft/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate + done + + - name: Publish Packages feedz + run: | + for package in $(find -name "*.nupkg"); do + echo "${0##*/}": Pushing $package... + dotnet nuget push $package --source https://f.feedz.io/loresoft/open/nuget/index.json --api-key ${{ secrets.FEEDDZ_KEY }} --skip-duplicate + done + + - name: Publish Packages Nuget + if: startsWith(github.ref, 'refs/tags/v') + run: | + for package in $(find -name "*.nupkg"); do + echo "${0##*/}": Pushing $package... + dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate + done diff --git a/coverlet.runsettings b/coverlet.runsettings index 4eac22c9..b28750fb 100644 --- a/coverlet.runsettings +++ b/coverlet.runsettings @@ -5,8 +5,6 @@ lcov - Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute,TestSDKAutoGeneratedCode - true diff --git a/sample/Tracker/Tracker.Core/Tracker.Core.csproj b/sample/Tracker/Tracker.Core/Tracker.Core.csproj index 9c20898d..146c8d40 100644 --- a/sample/Tracker/Tracker.Core/Tracker.Core.csproj +++ b/sample/Tracker/Tracker.Core/Tracker.Core.csproj @@ -8,9 +8,9 @@ - + - + diff --git a/sample/Tracker/Tracker.Scaffold/Tracker.Scaffold.csproj b/sample/Tracker/Tracker.Scaffold/Tracker.Scaffold.csproj index d9562bb3..4b851250 100644 --- a/sample/Tracker/Tracker.Scaffold/Tracker.Scaffold.csproj +++ b/sample/Tracker/Tracker.Scaffold/Tracker.Scaffold.csproj @@ -8,11 +8,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/Directory.Build.props b/src/Directory.Build.props index b9154d86..81b7feb5 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 diff --git a/src/EntityFrameworkCore.Generator.Core/EntityFrameworkCore.Generator.Core.csproj b/src/EntityFrameworkCore.Generator.Core/EntityFrameworkCore.Generator.Core.csproj index 27852be9..6a4002aa 100644 --- a/src/EntityFrameworkCore.Generator.Core/EntityFrameworkCore.Generator.Core.csproj +++ b/src/EntityFrameworkCore.Generator.Core/EntityFrameworkCore.Generator.Core.csproj @@ -1,4 +1,4 @@ - + net8.0 EntityFrameworkCore.Generator @@ -7,17 +7,17 @@ - - + + - + - - - + + + - + diff --git a/src/EntityFrameworkCore.Generator/EntityFrameworkCore.Generator.csproj b/src/EntityFrameworkCore.Generator/EntityFrameworkCore.Generator.csproj index 337985c5..df541f88 100644 --- a/src/EntityFrameworkCore.Generator/EntityFrameworkCore.Generator.csproj +++ b/src/EntityFrameworkCore.Generator/EntityFrameworkCore.Generator.csproj @@ -12,7 +12,7 @@ - + diff --git a/test/EntityFrameworkCore.Generator.Core.Tests/EntityFrameworkCore.Generator.Core.Tests.csproj b/test/EntityFrameworkCore.Generator.Core.Tests/EntityFrameworkCore.Generator.Core.Tests.csproj index 397eb1e2..d0ee1998 100644 --- a/test/EntityFrameworkCore.Generator.Core.Tests/EntityFrameworkCore.Generator.Core.Tests.csproj +++ b/test/EntityFrameworkCore.Generator.Core.Tests/EntityFrameworkCore.Generator.Core.Tests.csproj @@ -28,8 +28,8 @@ - - + + all runtime; build; native; contentfiles; analyzers