Skip to content

Commit 8e2a262

Browse files
Cache nuget packages (#53)
* Cache nuget packages * Use lockfile to restore packages * Use build props
1 parent 5d812f0 commit 8e2a262

File tree

4 files changed

+2024
-1
lines changed

4 files changed

+2024
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ jobs:
2323
- name: Setup .NET
2424
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab
2525
with:
26-
dotnet-version: 5.0.202
26+
dotnet-version: "5.0.202"
27+
cache: true
28+
cache-dependency-path: "**/packages.lock.json"
29+
30+
- name: Restore packages
31+
run: dotnet restore --locked-mode
2732

2833
- name: Run tests
2934
run: dotnet test

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
4+
</PropertyGroup>
5+
</Project>

0 commit comments

Comments
 (0)