Skip to content

Commit faa80b9

Browse files
committed
chore(ci): update config for Dependabot lock file handling
1 parent 30e3fe1 commit faa80b9

File tree

5 files changed

+1766
-112
lines changed

5 files changed

+1766
-112
lines changed

.github/workflows/dotnet.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
# The action searches for packages.lock.json in the repository root,
2727
# calculates their hash, and uses it as a part of the cache key.
2828
cache: true
29+
# Use cache-dependency-path for cases when multiple dependency files
30+
# are used, or they are located in different subdirectories.
31+
cache-dependency-path: |
32+
Dotnet.Samples.AspNetCore.WebApi/packages.lock.json
33+
Dotnet.Samples.AspNetCore.WebApi.Tests/packages.lock.json
2934
3035
- name: Restore dependencies
3136
run: dotnet restore

Dotnet.Samples.AspNetCore.WebApi.Tests/Dotnet.Samples.AspNetCore.WebApi.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>
88
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
9-
<NuGetLockFilePath>../packages.lock.json</NuGetLockFilePath>
109
</PropertyGroup>
1110

1211
<ItemGroup>

0 commit comments

Comments
 (0)