diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 0514a35..f3b1ea6 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,9 +1,9 @@
version: 2
updates:
- package-ecosystem: "github-actions"
- directory: "/" # Location of package manifests
+ directory: "/"
schedule:
- interval: "weekly"
+ interval: monthly
labels:
- "dependencies"
- "github-actions"
@@ -11,7 +11,11 @@ updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
- interval: "weekly"
+ interval: monthly
+ ignore:
+ - dependency-name: "*"
+ update-types:
+ - "version-update:semver-patch"
labels:
- "dependencies"
- "nuget"
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 0b74213..6b0da69 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -22,7 +22,10 @@
-
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
diff --git a/src/OLT.Extensions.Caching.Abstractions/OLT.Extensions.Caching.Abstractions.csproj b/src/OLT.Extensions.Caching.Abstractions/OLT.Extensions.Caching.Abstractions.csproj
index 8b695ac..54106d9 100644
--- a/src/OLT.Extensions.Caching.Abstractions/OLT.Extensions.Caching.Abstractions.csproj
+++ b/src/OLT.Extensions.Caching.Abstractions/OLT.Extensions.Caching.Abstractions.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props
index a3494fa..386bff6 100644
--- a/tests/Directory.Build.props
+++ b/tests/Directory.Build.props
@@ -8,21 +8,20 @@
false
-
-
+
-
+
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+ -->
$(NoWarn);SYSLIB0011
diff --git a/tests/OLT.Extensions.Caching.Tests/OLT.Extensions.Caching.Tests.csproj b/tests/OLT.Extensions.Caching.Tests/OLT.Extensions.Caching.Tests.csproj
index e434146..7cc7f03 100644
--- a/tests/OLT.Extensions.Caching.Tests/OLT.Extensions.Caching.Tests.csproj
+++ b/tests/OLT.Extensions.Caching.Tests/OLT.Extensions.Caching.Tests.csproj
@@ -6,12 +6,24 @@
-
-
-
-
+
+
+
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
diff --git a/tests/OLT.Extensions.Caching.Tests/OltHybridCacheTests.cs b/tests/OLT.Extensions.Caching.Tests/OltHybridCacheTests.cs
index 6f9c85c..e0002e8 100644
--- a/tests/OLT.Extensions.Caching.Tests/OltHybridCacheTests.cs
+++ b/tests/OLT.Extensions.Caching.Tests/OltHybridCacheTests.cs
@@ -14,15 +14,16 @@ public class OltHybridCacheTests : IAsyncLifetime
public OltHybridCacheTests()
{
- _redisContainer = new RedisBuilder().Build();
+ _redisContainer = new RedisBuilder("redis:8.0").Build();
}
- public async Task InitializeAsync()
+
+ public async ValueTask InitializeAsync()
{
await _redisContainer.StartAsync();
}
- public async Task DisposeAsync()
+ public async ValueTask DisposeAsync()
{
await _redisContainer.StopAsync();
}
@@ -616,6 +617,7 @@ await cache.GetOrSetAsync("testKey", (sp, ctx) =>
Assert.NotEqual(default, capturedToken);
}
+
private class TestScopedService
{
public string GetValue() => "ScopedValue";