diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8885fa6..3a0cd6d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,15 +1,15 @@ 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" + 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" + open-pull-requests-limit: 10 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index dd1b2ee..5adb80f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -3,6 +3,7 @@ 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 }} @@ -55,7 +56,7 @@ jobs: - name: Create Packages if: success() && github.event_name != 'pull_request' - run: dotnet pack --configuration Release --include-symbols --include-source --no-build --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 5aa3b25..55a8a03 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 @@ -34,7 +38,6 @@ - diff --git a/src/XUnit.Hosting/TestApplicationFixture.cs b/src/XUnit.Hosting/TestApplicationFixture.cs index 8855e47..2f2f3e0 100644 --- a/src/XUnit.Hosting/TestApplicationFixture.cs +++ b/src/XUnit.Hosting/TestApplicationFixture.cs @@ -8,7 +8,7 @@ namespace XUnit.Hosting; /// /// XUnit collection fixture that supports /// -public abstract class TestApplicationFixture : ITestHostFixture +public abstract class TestApplicationFixture : ITestHostFixture { private readonly Lazy _host; @@ -61,7 +61,7 @@ protected virtual IHost CreateHost() /// A new instance of protected virtual HostApplicationBuilderSettings CreateBuilderSettings() { - return new HostApplicationBuilderSettings(); + return new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }; } /// diff --git a/test/XUnit.Hosting.Tests/XUnit.Hosting.Tests.csproj b/test/XUnit.Hosting.Tests/XUnit.Hosting.Tests.csproj index ea154a2..687d215 100644 --- a/test/XUnit.Hosting.Tests/XUnit.Hosting.Tests.csproj +++ b/test/XUnit.Hosting.Tests/XUnit.Hosting.Tests.csproj @@ -11,8 +11,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all