Skip to content

Commit 2a3ed7f

Browse files
committed
ci(test-all): add cache nuget packages and standalone restore
1 parent 81fe959 commit 2a3ed7f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/test-all.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,19 @@ jobs:
1515
with:
1616
dotnet-version: '9.0.x'
1717

18+
- name: Cache NuGet packages
19+
uses: actions/cache@v4
20+
with:
21+
path: ${{ github.workspace }}/.nuget/packages
22+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}-${{ hashFiles('**/global.json') }}
23+
restore-keys: |
24+
${{ runner.os }}-nuget-
25+
26+
- name: dotnet restore
27+
run: dotnet restore
28+
1829
- name: dotnet build
19-
run: dotnet build
30+
run: dotnet build --no-restore
2031

2132
- name: dotnet test
22-
run: dotnet test
33+
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)