Skip to content

Commit 93264ec

Browse files
committed
chore: update pack/pull actions
1 parent 18f981b commit 93264ec

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/auto-pull-request-checks.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ jobs:
2020
with:
2121
dotnet-version: 9.0.x
2222

23+
- name: Cache NuGet packages
24+
uses: actions/cache@v4
25+
with:
26+
path: ~/.nuget/packages
27+
key: ${{runner.os}}-nuget-${{hashFiles('​**​/*.csproj')}}
28+
restore-keys: |
29+
${{runner.os}}-nuget-
30+
31+
- name: Restore dependencies
32+
run: dotnet restore src/BootstrapBlazor
33+
2334
- name: Test
2435
run: |
2536
dotnet test test/UnitTest --collect:"XPlat Code Coverage"

.github/workflows/pack.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- pack
77
- release
88
- hotfix
9+
- dev
910

1011
jobs:
1112
pack:
@@ -22,6 +23,17 @@ jobs:
2223
with:
2324
dotnet-version: 9.0.x
2425

26+
- name: Cache NuGet packages
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.nuget/packages
30+
key: ${{runner.os}}-nuget-${{hashFiles('​**​/*.csproj')}}
31+
restore-keys: |
32+
${{runner.os}}-nuget-
33+
34+
- name: Restore dependencies
35+
run: dotnet restore src/BootstrapBlazor
36+
2537
- name: NuGet login
2638
uses: NuGet/login@v1
2739
id: login

0 commit comments

Comments
 (0)